From 6f9225b9cc8da23d359c33d3d2bcd18b29ea534d Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 5 May 2021 19:20:24 -0400 Subject: [PATCH] Prevent Activity not found crash --- .../be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt index 7c39e695..75629031 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt @@ -48,7 +48,7 @@ class TetherTimeoutMonitor(private val timeout: Long = 0, resources.getInteger(resources.findIdentifier("config_wifiFrameworkSoftApShutDownTimeoutMilliseconds", "integer", "com.android.wifi.resources", info.packageName)) } - } catch (e: Resources.NotFoundException) { + } catch (e: RuntimeException) { Timber.w(e) MIN_SOFT_AP_TIMEOUT_DELAY_MS } else MIN_SOFT_AP_TIMEOUT_DELAY_MS