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
c6164acf
Commit
c6164acf
authored
Dec 21, 2012
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix isRunning checkbox
parent
bbdcb440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/com/github/shadowsocks/Shadowsocks.java
src/com/github/shadowsocks/Shadowsocks.java
+10
-4
No files found.
src/com/github/shadowsocks/Shadowsocks.java
View file @
c6164acf
...
@@ -51,14 +51,10 @@ import android.os.Bundle;
...
@@ -51,14 +51,10 @@ import android.os.Bundle;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Message
;
import
android.os.Message
;
import
android.preference.*
;
import
android.preference.*
;
import
android.text.SpannableString
;
import
android.text.method.LinkMovementMethod
;
import
android.text.util.Linkify
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.KeyEvent
;
import
android.view.KeyEvent
;
import
android.view.Menu
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.google.analytics.tracking.android.EasyTracker
;
import
com.google.analytics.tracking.android.EasyTracker
;
...
@@ -109,6 +105,7 @@ public class Shadowsocks extends PreferenceActivity implements
...
@@ -109,6 +105,7 @@ public class Shadowsocks extends PreferenceActivity implements
private
EditTextPreference
sitekeyText
;
private
EditTextPreference
sitekeyText
;
private
Preference
proxyedApps
;
private
Preference
proxyedApps
;
private
CheckBoxPreference
isBypassAppsCheck
;
private
CheckBoxPreference
isBypassAppsCheck
;
private
CheckBoxPreference
isRunningCheck
;
private
void
copyAssets
(
String
path
)
{
private
void
copyAssets
(
String
path
)
{
...
@@ -180,6 +177,7 @@ public class Shadowsocks extends PreferenceActivity implements
...
@@ -180,6 +177,7 @@ public class Shadowsocks extends PreferenceActivity implements
proxyedApps
=
findPreference
(
"proxyedApps"
);
proxyedApps
=
findPreference
(
"proxyedApps"
);
isBypassAppsCheck
=
(
CheckBoxPreference
)
findPreference
(
"isBypassApps"
);
isBypassAppsCheck
=
(
CheckBoxPreference
)
findPreference
(
"isBypassApps"
);
isRunningCheck
=
(
CheckBoxPreference
)
findPreference
(
"isRunning"
);
if
(
mProgressDialog
==
null
)
if
(
mProgressDialog
==
null
)
mProgressDialog
=
ProgressDialog
.
show
(
this
,
""
,
mProgressDialog
=
ProgressDialog
.
show
(
this
,
""
,
...
@@ -374,6 +372,14 @@ public class Shadowsocks extends PreferenceActivity implements
...
@@ -374,6 +372,14 @@ public class Shadowsocks extends PreferenceActivity implements
SharedPreferences
settings
=
PreferenceManager
SharedPreferences
settings
=
PreferenceManager
.
getDefaultSharedPreferences
(
this
);
.
getDefaultSharedPreferences
(
this
);
if
(
key
.
equals
(
"isRunning"
))
{
if
(
settings
.
getBoolean
(
"isRunning"
,
false
))
{
isRunningCheck
.
setChecked
(
true
);
}
else
{
isRunningCheck
.
setChecked
(
false
);
}
}
if
(
key
.
equals
(
"isConnecting"
))
{
if
(
key
.
equals
(
"isConnecting"
))
{
if
(
settings
.
getBoolean
(
"isConnecting"
,
false
))
{
if
(
settings
.
getBoolean
(
"isConnecting"
,
false
))
{
Log
.
d
(
TAG
,
"Connecting start"
);
Log
.
d
(
TAG
,
"Connecting start"
);
...
...
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