summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java b/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
index 103462cc..7ee7bec7 100644
--- a/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
+++ b/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
@@ -1,5 +1,7 @@
package se.leap.bitmaskclient.tethering;
+import de.blinkt.openvpn.core.VpnStatus;
+
public class TetheringState implements Cloneable {
public boolean isWifiTetheringEnabled;
public boolean isUsbTetheringEnabled;
@@ -42,7 +44,7 @@ public class TetheringState implements Cloneable {
}
public boolean isVpnTetheringRunning() {
- return tetherWifiVpn() || tetherUsbVpn() || tetherBluetoothVpn();
+ return (tetherWifiVpn() || tetherUsbVpn() || tetherBluetoothVpn()) && VpnStatus.isVPNActive();
}