summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2023-11-01 03:52:50 +0000
committercyberta <cyberta@riseup.net>2023-11-01 03:52:50 +0000
commit85eb52e62b55d4fbe9434b250f3a6cecc70d77ec (patch)
treee320ddae310ea2fea65f563205e9d75e3839858d /app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
parentd173064257b150b3ac344c2e0fd1f892e85edbbc (diff)
parentcdd18e62f6a6fa0821445068049cb0b1de9e00f9 (diff)
Merge branch 'last_tweaks_before_release' into 'master'
Last tweaks before release See merge request leap/bitmask_android!262
Diffstat (limited to 'app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
index 575f1f59..b38eeb14 100644
--- a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
+++ b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
@@ -277,6 +277,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
// Always show notification here to avoid problem with startForeground timeout
notificationManager.createOpenVpnNotificationChannel();
notificationManager.buildForegroundServiceNotification(EipStatus.getInstance().getLevel(), this::onNotificationBuild);
+ notificationManager.cancelVoidVpnServiceNotifications();
}
@Override
@@ -329,7 +330,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
updateShortCutUsage(mProfile);
}
VpnStatus.setAlwaysOn(false);
-
+ notificationManager.cancelVoidVpnServiceNotifications();
} else {
/* The intent is null when we are set as always-on or the service has been restarted. */
Log.d(TAG, "Starting VPN due to isAlwaysOn system settings or app crash.");