Commit 7d5fe42d authored by Max Lv's avatar Max Lv

tested on 4.2.2 and 2.3.3 with Tablet UI and Fallback UI

parent 96799136
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1"> android:stretchColumns="1">
<TableRow> <TableRow>
<ImageView android:id="@+id/itemicon" android:layout_width="48sp" <ImageView android:id="@+id/itemicon" android:layout_width="48dp"
android:layout_height="48sp" android:scaleType="fitCenter" android:layout_height="48dp" android:scaleType="fitCenter"
android:padding="3dip"></ImageView> android:padding="3dp"></ImageView>
<TextView android:layout_height="wrap_content" android:id="@+id/itemtext" <TextView android:layout_height="wrap_content" android:id="@+id/itemtext"
android:text="uid:packages" android:maxLength="25" android:textSize="18sp" android:padding="3dip"></TextView> android:text="uid:packages" android:maxLength="25" android:textSize="18sp"
android:padding="3dp"></TextView>
<CheckBox android:layout_width="wrap_content" <CheckBox android:layout_width="wrap_content" android:layout_marginRight="6dp"
android:layout_height="wrap_content" android:id="@+id/itemcheck"></CheckBox> android:layout_height="fill_parent" android:id="@+id/itemcheck"></CheckBox>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
...@@ -24,10 +24,11 @@ import android.view.WindowManager; ...@@ -24,10 +24,11 @@ import android.view.WindowManager;
import android.widget.*; import android.widget.*;
import android.widget.AbsListView.OnScrollListener; import android.widget.AbsListView.OnScrollListener;
import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.CompoundButton.OnCheckedChangeListener;
import com.actionbarsherlock.app.SherlockActivity;
import java.util.*; import java.util.*;
public class AppManager extends Activity implements OnCheckedChangeListener, public class AppManager extends SherlockActivity implements OnCheckedChangeListener,
OnClickListener { OnClickListener {
public final static String PREFS_KEY_PROXYED = "Proxyed"; public final static String PREFS_KEY_PROXYED = "Proxyed";
......
...@@ -552,6 +552,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity ...@@ -552,6 +552,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity
@Override @Override
public void onPause() { public void onPause() {
super.onPause();
// Unregister the listener whenever a key changes // Unregister the listener whenever a key changes
getPreferenceScreen().getSharedPreferences() getPreferenceScreen().getSharedPreferences()
.unregisterOnSharedPreferenceChangeListener(this); .unregisterOnSharedPreferenceChangeListener(this);
...@@ -601,6 +602,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity ...@@ -601,6 +602,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity
@Override @Override
public void onPause() { public void onPause() {
super.onPause();
// Unregister the listener whenever a key changes // Unregister the listener whenever a key changes
getPreferenceScreen().getSharedPreferences() getPreferenceScreen().getSharedPreferences()
.unregisterOnSharedPreferenceChangeListener(this); .unregisterOnSharedPreferenceChangeListener(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment