summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-09-27 12:17:52 +0200
committercyBerta <cyberta@riseup.net>2019-09-27 12:17:52 +0200
commit91877ac8ed64927d14c0762cd4402e5ed736fab9 (patch)
treede3c5454ba853020f877e3229e3ab5a9024a7cf4 /app/src/main/java/se
parente52d759c635a25969079503991e825b3f373cbcc (diff)
fix flickering when restarting the vpn
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java
index 7d97dfbb..3db86205 100644
--- a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java
@@ -268,8 +268,8 @@ public class NavigationDrawerFragment extends Fragment {
useBridges.setOnCheckedChangeListener((buttonView, isChecked) -> {
usePluggableTransports(getContext(), isChecked);
if (VpnStatus.isVPNActive()) {
- EipCommand.startVPN(getContext(), false);
- closeDrawerWithDelay();
+ EipCommand.startVPN(getContext(), true);
+ closeDrawer();
}
});