From ed5c0385f9c9e7836b80eed6dda4dc798ec6c41c Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 8 Oct 2019 20:46:01 +0200 Subject: reset pluggableTransports settings after switching to a new provider if the new one doesn't support PT --- app/src/main/java/se/leap/bitmaskclient/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3