summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-08 13:22:48 +0100
committercyBerta <cyberta@riseup.net>2018-02-08 14:10:18 +0100
commitef805faec61a4cb3155dd336f5db08cd2c40aece (patch)
tree98c3f2309b8d3a852655776bf2650a3b998623e2 /app/src
parent1a7b6d7828aa99180d5e9d6e0a7ec17ac51f16ed (diff)
automatically start vpn after a successful configuration of a new provider
Diffstat (limited to 'app/src')
-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();