summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-25 13:06:37 +0100
committercyBerta <cyberta@riseup.net>2021-11-25 13:06:37 +0100
commit5be61773c92ff0bfee8c7b67ca79a0ebb576b644 (patch)
tree481c129e81216f01dcb8240ec2789973e51e1e20
parentd71f36119410e5463f76a45ac555d4dd3a510b74 (diff)
restart VPN if user changes UDP settings while VPN is on
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java4
1 files changed, 4 insertions, 0 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 87c64a89..7157d1cc 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
@@ -138,6 +138,10 @@ public class SettingsFragment extends Fragment implements SharedPreferences.OnSh
return;
}
preferUDP(getContext(), isChecked);
+ if (VpnStatus.isVPNActive()) {
+ EipCommand.startVPN(getContext(), false);
+ showVPNFragment();
+ }
});
}