summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/StartActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
index da59a1fc..26385f67 100644
--- a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
@@ -160,6 +160,7 @@ public class StartActivity extends Activity {
Log.d(TAG, "start VPN in background");
eipCommand(EIP_ACTION_START);
finish();
+ return;
}
Log.d(TAG, "show MainActivity!");
showMainActivity();
@@ -186,6 +187,7 @@ public class StartActivity extends Activity {
if (resultCode == RESULT_OK && data.hasExtra(Provider.KEY)) {
Provider provider = data.getParcelableExtra(Provider.KEY);
ConfigHelper.storeProviderInPreferences(preferences, provider);
+ eipCommand(EIP_ACTION_START);
showMainActivity();
} else if (resultCode == RESULT_CANCELED) {
finish();