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
2c2e5790
Commit
2c2e5790
authored
May 05, 2016
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo: deattach => detach
I can't believe I've been so blind.
parent
41683294
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala
...scala/com/github/shadowsocks/ProfileManagerActivity.scala
+1
-1
src/main/scala/com/github/shadowsocks/ServiceBoundContext.scala
...in/scala/com/github/shadowsocks/ServiceBoundContext.scala
+1
-1
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
+1
-1
src/main/scala/com/github/shadowsocks/ShadowsocksDeathRecipient.scala
...la/com/github/shadowsocks/ShadowsocksDeathRecipient.scala
+1
-1
src/main/scala/com/github/shadowsocks/ShadowsocksRunnerActivity.scala
...la/com/github/shadowsocks/ShadowsocksRunnerActivity.scala
+1
-1
src/main/scala/com/github/shadowsocks/ShadowsocksRunnerService.scala
...ala/com/github/shadowsocks/ShadowsocksRunnerService.scala
+1
-1
src/main/scala/com/github/shadowsocks/ShadowsocksSettings.scala
...in/scala/com/github/shadowsocks/ShadowsocksSettings.scala
+1
-1
No files found.
src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala
View file @
2c2e5790
...
...
@@ -363,7 +363,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
}
override
def
onDestroy
{
de
at
tachService
()
detachService
()
undoManager
.
flush
ShadowsocksApplication
.
profileManager
.
setProfileAddedListener
(
null
)
super
.
onDestroy
...
...
src/main/scala/com/github/shadowsocks/ServiceBoundContext.scala
View file @
2c2e5790
...
...
@@ -62,7 +62,7 @@ trait ServiceBoundContext extends Context {
}
}
def
de
at
tachService
()
{
def
detachService
()
{
unregisterCallback
callback
=
null
if
(
connection
!=
null
)
{
...
...
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
View file @
2c2e5790
...
...
@@ -554,7 +554,7 @@ class Shadowsocks
override
def
onDestroy
()
{
super
.
onDestroy
()
_isDestroyed
=
true
de
at
tachService
()
detachService
()
new
BackupManager
(
this
).
dataChanged
()
handler
.
removeCallbacksAndMessages
(
null
)
}
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksDeathRecipient.scala
View file @
2c2e5790
...
...
@@ -15,7 +15,7 @@ class ShadowsocksDeathRecipient(val mContext: ServiceBoundContext)
Log
.
d
(
TAG
,
"[ShadowsocksDeathRecipient] binder died."
)
mContext
match
{
case
ss
:
Shadowsocks
=>
ss
.
de
at
tachService
ss
.
detachService
ss
.
crashRecovery
ss
.
attachService
case
_
=>
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksRunnerActivity.scala
View file @
2c2e5790
...
...
@@ -90,7 +90,7 @@ class ShadowsocksRunnerActivity extends Activity with ServiceBoundContext {
override
def
onDestroy
()
{
super
.
onDestroy
()
de
at
tachService
()
detachService
()
if
(
receiver
!=
null
)
{
unregisterReceiver
(
receiver
)
receiver
=
null
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksRunnerService.scala
View file @
2c2e5790
...
...
@@ -77,6 +77,6 @@ class ShadowsocksRunnerService extends Service with ServiceBoundContext {
override
def
onDestroy
()
{
super
.
onDestroy
()
de
at
tachService
()
detachService
()
}
}
src/main/scala/com/github/shadowsocks/ShadowsocksSettings.scala
View file @
2c2e5790
...
...
@@ -132,7 +132,7 @@ class ShadowsocksSettings extends PreferenceFragment with OnSharedPreferenceChan
def
onSharedPreferenceChanged
(
sharedPreferences
:
SharedPreferences
,
key
:
String
)
=
key
match
{
case
Key
.
isNAT
=>
activity
.
handler
.
post
(()
=>
{
activity
.
de
at
tachService
activity
.
detachService
activity
.
attachService
})
case
_
=>
...
...
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