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
9a8c1ce6
Commit
9a8c1ce6
authored
Jan 06, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update translation
parent
a82702b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
150 deletions
+62
-150
res/layout/layout_progress_bar.xml
res/layout/layout_progress_bar.xml
+0
-17
res/values/strings.xml
res/values/strings.xml
+57
-126
src/com/github/shadowsocks/Shadowsocks.java
src/com/github/shadowsocks/Shadowsocks.java
+5
-7
No files found.
res/layout/layout_progress_bar.xml
deleted
100644 → 0
View file @
a82702b8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"horizontal"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
<ImageView
android:id=
"@+id/image"
android:layout_width=
"wrap_content"
android:layout_height=
"fill_parent"
android:layout_marginLeft=
"10dp"
android:layout_marginRight=
"10dp"
android:src=
"@drawable/ic_launcher"
/>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/down_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"fill_parent"
android:textSize=
"14sp"
android:paddingBottom=
"4dp"
android:text=
"@string/downloading"
/>
<ProgressBar
android:id=
"@+id/pb"
android:layout_width=
"200dp"
android:layout_height=
"wrap_content"
style=
"?android:attr/progressBarStyleHorizontal"
/>
</LinearLayout>
</LinearLayout>
res/values/strings.xml
View file @
9a8c1ce6
This diff is collapsed.
Click to expand it.
src/com/github/shadowsocks/Shadowsocks.java
View file @
9a8c1ce6
...
...
@@ -176,12 +176,10 @@ public class Shadowsocks extends PreferenceActivity implements
isBypassAppsCheck
=
(
CheckBoxPreference
)
findPreference
(
"isBypassApps"
);
isRunningCheck
=
(
CheckBoxPreference
)
findPreference
(
"isRunning"
);
if
(
mProgressDialog
==
null
)
if
(
mProgressDialog
==
null
)
{
mProgressDialog
=
ProgressDialog
.
show
(
this
,
""
,
getString
(
R
.
string
.
initializing
),
true
,
true
);
final
SharedPreferences
settings
=
PreferenceManager
.
getDefaultSharedPreferences
(
this
);
}
new
Thread
()
{
@Override
...
...
@@ -197,14 +195,14 @@ public class Shadowsocks extends PreferenceActivity implements
versionName
=
"NONE"
;
}
if
(!
settings
.
getBoolean
(
versionName
,
false
))
{
final
SharedPreferences
settings
=
PreferenceManager
.
getDefaultSharedPreferences
(
Shadowsocks
.
this
);
if
(!
settings
.
getBoolean
(
versionName
,
false
))
{
Editor
edit
=
settings
.
edit
();
edit
.
putBoolean
(
versionName
,
true
);
edit
.
commit
();
reset
();
}
handler
.
sendEmptyMessage
(
MSG_INITIAL_FINISH
);
...
...
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