From 5be61773c92ff0bfee8c7b67ca79a0ebb576b644 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 25 Nov 2021 13:06:37 +0100 Subject: restart VPN if user changes UDP settings while VPN is on --- .../java/se/leap/bitmaskclient/base/fragments/SettingsFragment.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main') 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(); + } }); } -- cgit v1.2.3