diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-25 13:06:37 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-25 13:06:37 +0100 |
commit | 5be61773c92ff0bfee8c7b67ca79a0ebb576b644 (patch) | |
tree | 481c129e81216f01dcb8240ec2789973e51e1e20 /app/src | |
parent | d71f36119410e5463f76a45ac555d4dd3a510b74 (diff) |
restart VPN if user changes UDP settings while VPN is on
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java | 4 |
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(); + } }); } |