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
416fa180
Commit
416fa180
authored
Jul 08, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix OOM in system ui. #24
parent
7b67e270
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/main/res/drawable/ic_stat_speed.xml
src/main/res/drawable/ic_stat_speed.xml
+2
-2
src/main/scala/com/github/shadowsocks/ShadowsocksService.scala
...ain/scala/com/github/shadowsocks/ShadowsocksService.scala
+1
-3
No files found.
src/main/res/drawable/ic_stat_speed.xml
View file @
416fa180
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<level-list
<level-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/ic_stat_
kb000
"
android:maxLevel=
"0"
/>
<item
android:drawable=
"@drawable/ic_stat_
shadowsocks
"
android:maxLevel=
"0"
/>
<item
android:drawable=
"@drawable/ic_stat_kb001"
android:maxLevel=
"1"
/>
<item
android:drawable=
"@drawable/ic_stat_kb001"
android:maxLevel=
"1"
/>
<item
android:drawable=
"@drawable/ic_stat_kb002"
android:maxLevel=
"2"
/>
<item
android:drawable=
"@drawable/ic_stat_kb002"
android:maxLevel=
"2"
/>
<item
android:drawable=
"@drawable/ic_stat_kb003"
android:maxLevel=
"3"
/>
<item
android:drawable=
"@drawable/ic_stat_kb003"
android:maxLevel=
"3"
/>
...
@@ -1094,4 +1094,4 @@
...
@@ -1094,4 +1094,4 @@
<item
android:drawable=
"@drawable/ic_stat_mb099"
android:maxLevel=
"1089"
/>
<item
android:drawable=
"@drawable/ic_stat_mb099"
android:maxLevel=
"1089"
/>
<item
android:drawable=
"@drawable/ic_stat_mb100"
android:maxLevel=
"1090"
/>
<item
android:drawable=
"@drawable/ic_stat_mb100"
android:maxLevel=
"1090"
/>
<item
android:drawable=
"@drawable/ic_stat_mb101"
android:maxLevel=
"1091"
/>
<item
android:drawable=
"@drawable/ic_stat_mb101"
android:maxLevel=
"1091"
/>
</level-list>
</level-list>
\ No newline at end of file
src/main/scala/com/github/shadowsocks/ShadowsocksService.scala
View file @
416fa180
...
@@ -335,9 +335,7 @@ class ShadowsocksService extends Service {
...
@@ -335,9 +335,7 @@ class ShadowsocksService extends Service {
bitmap
.
getHeight
-
(
bitmap
.
getHeight
-
bounds
.
height
())
/
2
,
paint
)
bitmap
.
getHeight
-
(
bitmap
.
getHeight
-
bounds
.
height
())
/
2
,
paint
)
builder
.
setLargeIcon
(
bitmap
)
builder
.
setLargeIcon
(
bitmap
)
if
(
rate
==
0
)
{
if
(
rate
<
1000
)
{
builder
.
setSmallIcon
(
R
.
drawable
.
ic_stat_shadowsocks
)
}
else
if
(
rate
<
1000
)
{
builder
.
setSmallIcon
(
R
.
drawable
.
ic_stat_speed
,
rate
)
builder
.
setSmallIcon
(
R
.
drawable
.
ic_stat_speed
,
rate
)
}
else
if
(
rate
<=
10000
)
{
}
else
if
(
rate
<=
10000
)
{
val
mb
=
rate
/
100
-
10
+
1000
val
mb
=
rate
/
100
-
10
+
1000
...
...
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