Bump to foreground service unconditionally on Q

This commit is contained in:
Mygod
2019-10-24 12:47:27 +08:00
parent dafee90ae5
commit 164dc7fe9f
2 changed files with 5 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ class RepeaterTileService : KillableTileService() {
if (binder == null) tapPending = true else when (binder.service.status) {
RepeaterService.Status.ACTIVE -> binder.shutdown()
RepeaterService.Status.IDLE -> ContextCompat.startForegroundService(this,
Intent(this, RepeaterService::class.java).putExtra(RepeaterService.EXTRA_POSSIBLY_BACKGROUND, true))
Intent(this, RepeaterService::class.java))
else -> { }
}
}