From 39cfeac23905bbdcee3f046a813b8a5a1c38fb0d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Feb 2016 15:03:39 +0100 Subject: [PATCH] Show VPN start exceptions --- app/src/main/java/eu/faircode/netguard/SinkholeService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/netguard/SinkholeService.java b/app/src/main/java/eu/faircode/netguard/SinkholeService.java index 98e22cbe..330d1208 100644 --- a/app/src/main/java/eu/faircode/netguard/SinkholeService.java +++ b/app/src/main/java/eu/faircode/netguard/SinkholeService.java @@ -320,6 +320,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS } catch (Throwable ex) { Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); + showErrorNotification(ex.toString()); + if (!(ex instanceof IllegalStateException)) { // Disable firewall prefs.edit().putBoolean("enabled", false).apply(); @@ -427,6 +429,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS startNative(vpn, listAllowed); } + removeWarningNotifications(); updateEnforcingNotification(listAllowed.size(), listRule.size()); }