summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-10-08 20:46:01 +0200
committercyBerta <cyberta@riseup.net>2019-10-08 20:46:01 +0200
commited5c0385f9c9e7836b80eed6dda4dc798ec6c41c (patch)
tree628f7a9368308ccb004ae3f93b31d81da22de6ad
parentb972a07e89b4b0b38a8b695878454accc79bc02d (diff)
reset pluggableTransports settings after switching to a new provider if the new one doesn't support PT
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/MainActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/MainActivity.java b/app/src/main/java/se/leap/bitmaskclient/MainActivity.java
index f2e333ab..95966b44 100644
--- a/app/src/main/java/se/leap/bitmaskclient/MainActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/MainActivity.java
@@ -39,6 +39,7 @@ import java.util.Observer;
import se.leap.bitmaskclient.drawer.NavigationDrawerFragment;
import se.leap.bitmaskclient.eip.EipCommand;
import se.leap.bitmaskclient.fragments.LogFragment;
+import se.leap.bitmaskclient.utils.PreferenceHelper;
import static se.leap.bitmaskclient.Constants.ASK_TO_CANCEL_VPN;
import static se.leap.bitmaskclient.Constants.BROADCAST_RESULT_CODE;
@@ -186,6 +187,9 @@ public class MainActivity extends AppCompatActivity implements EipSetupListener,
storeProviderInPreferences(preferences, provider);
ProviderObservable.getInstance().updateProvider(provider);
+ if (!provider.supportsPluggableTransports()) {
+ PreferenceHelper.usePluggableTransports(this, false);
+ }
navigationDrawerFragment.refresh();
switch (requestCode) {