diff options
author | cyBerta <cyberta@riseup.net> | 2022-12-23 15:05:30 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-12-23 15:05:30 +0100 |
commit | 17ce27727c3b002f4c6fe242eb4380ad42725868 (patch) | |
tree | f994c342181703caf13c0ee8d6a165f229f0c453 | |
parent | 8e72429bacfacd39eabe59f43174fb761fcab5d1 (diff) |
always-on might also restart the VoidVPNService without an intent, always create a foreground notification
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/VoidVpnService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/VoidVpnService.java b/app/src/main/java/se/leap/bitmaskclient/eip/VoidVpnService.java index fbfa2a1d..79876d50 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/VoidVpnService.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/VoidVpnService.java @@ -91,7 +91,7 @@ public class VoidVpnService extends VpnService implements Observer, VpnNotificat } }); thread.run(); - } else if (action.equals("android.net.VpnService") && Build.VERSION.SDK_INT >= ALWAYS_ON_MIN_API_LEVEL) { + } else if (intent == null || action.equals("android.net.VpnService") && Build.VERSION.SDK_INT >= ALWAYS_ON_MIN_API_LEVEL) { //only always-on feature triggers this startWithForegroundNotification(); thread = new Thread(new Runnable() { |