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
f4c0ec31
Commit
f4c0ec31
authored
Nov 03, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine icon
parent
4feaa859
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
13 deletions
+12
-13
src/main/AndroidManifest.xml
src/main/AndroidManifest.xml
+2
-2
src/main/res/layout/layout_switch.xml
src/main/res/layout/layout_switch.xml
+1
-1
src/main/res/values-zh/strings.xml
src/main/res/values-zh/strings.xml
+3
-3
src/main/res/values/strings.xml
src/main/res/values/strings.xml
+2
-2
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
+1
-1
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
+1
-2
src/main/scala/com/github/shadowsocks/ShadowsocksService.scala
...ain/scala/com/github/shadowsocks/ShadowsocksService.scala
+2
-2
No files found.
src/main/AndroidManifest.xml
View file @
f4c0ec31
...
...
@@ -21,7 +21,7 @@
android:hardwareAccelerated=
"true"
android:icon=
"@drawable/ic_launcher"
android:backupAgent=
".ShadowsocksBackupAgent"
android:label=
"@string/
screen
_name"
>
android:label=
"@string/
app
_name"
>
<meta-data
android:name=
"com.google.android.backup.api_key"
android:value=
"AEdPqrEAAAAI_zVxZthz2HDuz9toTvkYvL0L5GA-OjeUIfBeXg"
/>
...
...
@@ -32,7 +32,7 @@
<activity
android:name=
".Shadowsocks"
android:label=
"@string/
screen
_name"
android:label=
"@string/
app
_name"
android:theme=
"@style/Theme.Shadowsocks"
android:launchMode=
"singleTask"
>
<intent-filter>
...
...
src/main/res/layout/layout_switch.xml
View file @
f4c0ec31
...
...
@@ -11,7 +11,7 @@
android:gravity=
"center_vertical"
android:textSize=
"24sp"
android:textColor=
"@color/title"
android:text=
"@string/
app
_name"
android:text=
"@string/
screen
_name"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
/>
...
...
src/main/res/values-zh/strings.xml
View file @
f4c0ec31
<?xml version="1.0" encoding="utf-8"?>
<!--Generated by crowdin.net-->
<resources>
<string
name=
"app_name"
>
shadowsocks
</string>
<string
name=
"screen_name"
>
影梭
</string>
<string
name=
"app_name"
>
影梭
</string>
<string
name=
"screen_name"
>
shadowsocks
</string>
<string
name=
"function_cat"
>
服务控制
</string>
<string
name=
"service_controller"
>
代理开关
</string>
<string
name=
"service_summary"
>
启动/关闭后台服务
</string>
...
...
@@ -38,7 +38,7 @@
<string
name=
"traffic_stat_summary"
>
在通知栏上显示当前上下行速率
</string>
<string
name=
"forward_success"
>
后台服务已开始运行。
</string>
<string
name=
"service_running"
>
已连接到 %s。
</string>
<string
name=
"service_status"
formatted=
"false"
>
当前速
度
:%d KB/s
</string>
<string
name=
"service_status"
formatted=
"false"
>
当前速
率
:%d KB/s
</string>
<string
name=
"forward_fail"
>
后台服务启动失败。
</string>
<string
name=
"service_stopped"
>
后台服务已停止。
</string>
<string
name=
"forward_stop"
>
后台服务已停止。
</string>
...
...
src/main/res/values/strings.xml
View file @
f4c0ec31
...
...
@@ -2,7 +2,7 @@
<resources>
<string
name=
"app_name"
>
shadowsocks
</string>
<string
name=
"screen_name"
>
ss
</string>
<string
name=
"screen_name"
>
s
hadowsock
s
</string>
<!-- function category -->
<string
name=
"function_cat"
>
Service Controller
</string>
...
...
@@ -49,7 +49,7 @@
<!-- notification category -->
<string
name=
"forward_success"
>
Shadowsocks started.
</string>
<string
name=
"service_running"
>
Connected to %s.
</string>
<string
name=
"service_status"
formatted=
"false"
>
Current
Speed
: %d KB/s
</string>
<string
name=
"service_status"
formatted=
"false"
>
Current
Rate
: %d KB/s
</string>
<string
name=
"forward_fail"
>
Shadowsocks failed to start.
</string>
<string
name=
"service_stopped"
>
Shadowsocks stopped.
</string>
<string
name=
"forward_stop"
>
Shadowsocks stopped.
</string>
...
...
src/main/scala/com/github/shadowsocks/ShadowVpnService.scala
View file @
f4c0ec31
...
...
@@ -350,7 +350,7 @@ class ShadowVpnService extends VpnService {
.
setSmallIcon
(
R
.
drawable
.
ic_stat_shadowsocks
)
.
setWhen
(
0
)
.
setTicker
(
title
)
.
setContentTitle
(
getString
(
R
.
string
.
screen
_name
))
.
setContentTitle
(
getString
(
R
.
string
.
app
_name
))
.
setContentText
(
info
)
.
setContentIntent
(
contentIntent
)
.
setAutoCancel
(
true
)
...
...
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
View file @
f4c0ec31
...
...
@@ -514,11 +514,10 @@ class Shadowsocks
getSupportActionBar
.
setCustomView
(
switchLayout
)
getSupportActionBar
.
setDisplayShowTitleEnabled
(
false
)
getSupportActionBar
.
setDisplayShowCustomEnabled
(
true
)
// getSupportActionBar.setDisplayShowHomeEnabled(false
)
getSupportActionBar
.
setIcon
(
R
.
drawable
.
ic_stat_shadowsocks
)
val
title
:
TextView
=
switchLayout
.
findViewById
(
R
.
id
.
title
).
asInstanceOf
[
TextView
]
val
tf
:
Typeface
=
Typefaces
.
get
(
this
,
"fonts/Iceland.ttf"
)
if
(
tf
!=
null
)
title
.
setTypeface
(
tf
)
title
.
setText
(
R
.
string
.
app_name
)
switchButton
=
switchLayout
.
findViewById
(
R
.
id
.
switchButton
).
asInstanceOf
[
Switch
]
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksService.scala
View file @
f4c0ec31
...
...
@@ -358,7 +358,7 @@ class ShadowsocksService extends Service {
builder
.
setWhen
(
0
)
.
setTicker
(
title
)
.
setContentTitle
(
getString
(
R
.
string
.
screen
_name
))
.
setContentTitle
(
getString
(
R
.
string
.
app
_name
))
.
setContentText
(
info
)
.
setContentIntent
(
contentIntent
)
.
addAction
(
android
.
R
.
drawable
.
ic_menu_close_clear_cancel
,
getString
(
R
.
string
.
stop
),
...
...
@@ -376,7 +376,7 @@ class ShadowsocksService extends Service {
.
setSmallIcon
(
R
.
drawable
.
ic_stat_shadowsocks
)
.
setWhen
(
0
)
.
setTicker
(
title
)
.
setContentTitle
(
getString
(
R
.
string
.
screen
_name
))
.
setContentTitle
(
getString
(
R
.
string
.
app
_name
))
.
setContentText
(
info
)
.
setContentIntent
(
contentIntent
)
.
setAutoCancel
(
true
)
...
...
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