Fix typo: deattach => detach

I can't believe I've been so blind.
This commit is contained in:
Mygod
2016-05-05 20:04:03 +08:00
parent 4168329481
commit 2c2e5790f5
7 changed files with 7 additions and 7 deletions
@@ -363,7 +363,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
}
override def onDestroy {
deattachService()
detachService()
undoManager.flush
ShadowsocksApplication.profileManager.setProfileAddedListener(null)
super.onDestroy
@@ -62,7 +62,7 @@ trait ServiceBoundContext extends Context {
}
}
def deattachService() {
def detachService() {
unregisterCallback
callback = null
if (connection != null) {
@@ -554,7 +554,7 @@ class Shadowsocks
override def onDestroy() {
super.onDestroy()
_isDestroyed = true
deattachService()
detachService()
new BackupManager(this).dataChanged()
handler.removeCallbacksAndMessages(null)
}
@@ -15,7 +15,7 @@ class ShadowsocksDeathRecipient(val mContext: ServiceBoundContext)
Log.d(TAG, "[ShadowsocksDeathRecipient] binder died.")
mContext match {
case ss: Shadowsocks =>
ss.deattachService
ss.detachService
ss.crashRecovery
ss.attachService
case _ =>
@@ -90,7 +90,7 @@ class ShadowsocksRunnerActivity extends Activity with ServiceBoundContext {
override def onDestroy() {
super.onDestroy()
deattachService()
detachService()
if (receiver != null) {
unregisterReceiver(receiver)
receiver = null
@@ -77,6 +77,6 @@ class ShadowsocksRunnerService extends Service with ServiceBoundContext {
override def onDestroy() {
super.onDestroy()
deattachService()
detachService()
}
}
@@ -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.deattachService
activity.detachService
activity.attachService
})
case _ =>