]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Show confirmation dialog also when connecting
authorTobias Brunner <tobias@strongswan.org>
Mon, 2 May 2016 16:19:26 +0000 (18:19 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 2 May 2016 16:35:04 +0000 (18:35 +0200)
src/frontends/android/app/src/main/java/org/strongswan/android/ui/MainActivity.java

index a6c668104400f408a13206521dca66dc47f0c2b6..89043425544c4493dc671d36d2eaaa9f1df8c06a 100644 (file)
@@ -230,7 +230,7 @@ public class MainActivity extends AppCompatActivity implements OnVpnProfileSelec
 
                removeFragmentByTag(DIALOG_TAG);
 
-               if (mService != null && mService.getState() == State.CONNECTED)
+               if (mService != null && (mService.getState() == State.CONNECTED || mService.getState() == State.CONNECTING))
                {
                        profileInfo.putBoolean(PROFILE_RECONNECT, mService.getProfile().getId() == profile.getId());