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"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1">
<TableRow>
<ImageView android:id="@+id/itemicon" android:layout_width="48sp"
android:layout_height="48sp" android:scaleType="fitCenter"
android:padding="3dip"></ImageView>
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1">
<TableRow>
<ImageView android:id="@+id/itemicon" android:layout_width="48dp"
android:layout_height="48dp" android:scaleType="fitCenter"
android:padding="3dp"></ImageView>
<TextView android:layout_height="wrap_content" android:id="@+id/itemtext"
android:text="uid:packages" android:maxLength="25" android:textSize="18sp" android:padding="3dip"></TextView>
<TextView android:layout_height="wrap_content" android:id="@+id/itemtext"
android:text="uid:packages" android:maxLength="25" android:textSize="18sp"
android:padding="3dp"></TextView>
<CheckBox android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/itemcheck"></CheckBox>
</TableRow>
<CheckBox android:layout_width="wrap_content" android:layout_marginRight="6dp"
android:layout_height="fill_parent" android:id="@+id/itemcheck"></CheckBox>
</TableRow>
</TableLayout>
......@@ -24,10 +24,11 @@ import android.view.WindowManager;
import android.widget.*;
import android.widget.AbsListView.OnScrollListener;
import android.widget.CompoundButton.OnCheckedChangeListener;
import com.actionbarsherlock.app.SherlockActivity;
import java.util.*;
public class AppManager extends Activity implements OnCheckedChangeListener,
public class AppManager extends SherlockActivity implements OnCheckedChangeListener,
OnClickListener {
public final static String PREFS_KEY_PROXYED = "Proxyed";
......
......@@ -552,6 +552,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity
@Override
public void onPause() {
super.onPause();
// Unregister the listener whenever a key changes
getPreferenceScreen().getSharedPreferences()
.unregisterOnSharedPreferenceChangeListener(this);
......@@ -601,6 +602,7 @@ public class Shadowsocks extends UnifiedSherlockPreferenceActivity
@Override
public void onPause() {
super.onPause();
// Unregister the listener whenever a key changes
getPreferenceScreen().getSharedPreferences()
.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