Properly ignore DOE

This commit is contained in:
Mygod
2023-05-19 17:52:50 -04:00
parent f26fb5516f
commit 434539986a

View File

@@ -29,7 +29,8 @@ abstract class KillableTileService : TileService(), ServiceConnection {
override fun onBind(intent: Intent?) = try {
super.onBind(intent)
} catch (_: DeadObjectException) {
} catch (e: RuntimeException) {
if (e.cause !is DeadObjectException) throw e
null
}.also { BootReceiver.startIfEnabled() }
}