Properly ignore DOE
This commit is contained in:
@@ -29,7 +29,8 @@ abstract class KillableTileService : TileService(), ServiceConnection {
|
|||||||
|
|
||||||
override fun onBind(intent: Intent?) = try {
|
override fun onBind(intent: Intent?) = try {
|
||||||
super.onBind(intent)
|
super.onBind(intent)
|
||||||
} catch (_: DeadObjectException) {
|
} catch (e: RuntimeException) {
|
||||||
|
if (e.cause !is DeadObjectException) throw e
|
||||||
null
|
null
|
||||||
}.also { BootReceiver.startIfEnabled() }
|
}.also { BootReceiver.startIfEnabled() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user