Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
7d5fe42d
Commit
7d5fe42d
authored
Apr 27, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tested on 4.2.2 and 2.3.3 with Tablet UI and Fallback UI
parent
96799136
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
res/layout/layout_apps_item.xml
res/layout/layout_apps_item.xml
+12
-11
src/com/github/shadowsocks/AppManager.java
src/com/github/shadowsocks/AppManager.java
+2
-1
src/com/github/shadowsocks/Shadowsocks.java
src/com/github/shadowsocks/Shadowsocks.java
+2
-0
No files found.
res/layout/layout_apps_item.xml
View file @
7d5fe42d
<?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=
"48s
p"
android:layout_height=
"48s
p"
android:scaleType=
"fitCenter"
android:padding=
"3di
p"
></ImageView>
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
android:stretchColumns=
"1"
>
<TableRow>
<ImageView
android:id=
"@+id/itemicon"
android:layout_width=
"48d
p"
android:layout_height=
"48d
p"
android:scaleType=
"fitCenter"
android:padding=
"3d
p"
></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_cont
ent"
android:id=
"@+id/itemcheck"
></CheckBox>
</TableRow>
<CheckBox
android:layout_width=
"wrap_content"
android:layout_marginRight=
"6dp
"
android:layout_height=
"fill_par
ent"
android:id=
"@+id/itemcheck"
></CheckBox>
</TableRow>
</TableLayout>
src/com/github/shadowsocks/AppManager.java
View file @
7d5fe42d
...
...
@@ -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
Sherlock
Activity
implements
OnCheckedChangeListener
,
OnClickListener
{
public
final
static
String
PREFS_KEY_PROXYED
=
"Proxyed"
;
...
...
src/com/github/shadowsocks/Shadowsocks.java
View file @
7d5fe42d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment