Commit 0503eeac authored by Mygod's avatar Mygod

Refine onServiceDisconnected

parent 1d295b28
...@@ -17,10 +17,7 @@ trait ServiceBoundContext extends Context { ...@@ -17,10 +17,7 @@ trait ServiceBoundContext extends Context {
ServiceBoundContext.this.onServiceConnected() ServiceBoundContext.this.onServiceConnected()
} }
override def onServiceDisconnected(name: ComponentName) { override def onServiceDisconnected(name: ComponentName) {
if (callback != null) { unregisterCallback
unregisterCallback
callback = null
}
ServiceBoundContext.this.onServiceDisconnected() ServiceBoundContext.this.onServiceDisconnected()
bgService = null bgService = null
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment