diff --git a/src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java b/src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java index 9b1bcff29..b0c12985e 100644 --- a/src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java +++ b/src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java @@ -331,7 +331,10 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe deinitializeCharon(); Log.i(TAG, "charon stopped"); mCurrentProfile = null; - removeNotification(); + if (mNextProfile == null) + { /* don't remove the notification if we are connecting to a different profile */ + removeNotification(); + } } } }