]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Don't hide the notification if we are connecting to a profile
authorTobias Brunner <tobias@strongswan.org>
Mon, 18 Jun 2018 14:30:26 +0000 (16:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 3 Jul 2018 09:31:38 +0000 (11:31 +0200)
In particular, if we are reconnecting after an error.

src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java

index 9b1bcff299da5154bb166c76e4108b9fb04e4f99..b0c12985ed5f145311043ffdcd59cdbdb93c46b4 100644 (file)
@@ -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();
+                               }
                        }
                }
        }