From 434539986a2e0e878ab81394d92dbdd8874241d0 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 19 May 2023 17:52:50 -0400 Subject: [PATCH] Properly ignore DOE --- .../main/java/be/mygod/vpnhotspot/util/KillableTileService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt index 3ab14bf0..ead7e063 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/util/KillableTileService.kt @@ -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() } }