diff options
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java index 99d49ccb..eb777abc 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java @@ -130,12 +130,16 @@ public class SettingsFragment extends Fragment implements SharedPreferences.OnSh IconTextEntry manualConfiguration = rootView.findViewById(R.id.bridge_manual_switch); manualConfiguration.setVisibility(ProviderObservable.getInstance().getCurrentProvider().supportsPluggableTransports() ? VISIBLE : GONE); SwitchCompat manualConfigurationSwitch = rootView.findViewById(R.id.bridge_manual_switch_control); - manualConfigurationSwitch.setChecked(usesManualBridges()); + boolean usesManualBridge = usesManualBridges(); + manualConfigurationSwitch.setChecked(usesManualBridge); manualConfigurationSwitch.setOnCheckedChangeListener((buttonView, isChecked) -> { if (!buttonView.isPressed()) { return; } resetManualConfig(); + if (!usesManualBridge){ + openManualConfigurationFragment(); + } }); manualConfiguration.setOnClickListener((buttonView) -> openManualConfigurationFragment()); @@ -151,6 +155,7 @@ public class SettingsFragment extends Fragment implements SharedPreferences.OnSh useSnowflake(false); setUseTunnel(TUNNELING_NONE); setUsePortHopping(false); + useBridges(false); if (VpnStatus.isVPNActive()) { EipCommand.startVPN(getContext(), false); Toast.makeText(getContext(), R.string.reconnecting, Toast.LENGTH_LONG).show(); |