Commit 4a97ff1d authored by Mygod's avatar Mygod

Makes less noise while stopping service

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