Commit 4a97ff1d authored by Mygod's avatar Mygod

Makes less noise while stopping service

parent 88fc092a
...@@ -88,10 +88,7 @@ object BaseService { ...@@ -88,10 +88,7 @@ object BaseService {
val closeReceiver = broadcastReceiver { _, intent -> val closeReceiver = broadcastReceiver { _, intent ->
when (intent.action) { when (intent.action) {
Action.RELOAD -> service.forceLoad() Action.RELOAD -> service.forceLoad()
else -> { else -> service.stopRunner(true)
Toast.makeText(service as Context, R.string.stopping, Toast.LENGTH_SHORT).show()
service.stopRunner(true)
}
} }
} }
var closeReceiverRegistered = false var closeReceiverRegistered = false
......
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