From bc52868173d490de0efdff3c48b608d92102e015 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 18 Jun 2018 16:30:26 +0200 Subject: [PATCH] android: Don't hide the notification if we are connecting to a profile In particular, if we are reconnecting after an error. --- .../java/org/strongswan/android/logic/CharonVpnService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); + } } } }