summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java/com/wireguard/android/model
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-22 00:38:15 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-22 00:51:37 -0600
commitedba6406418578432134bbd70d88e7d19e0e1004 (patch)
treefaffd89cb2abf750e70324481f928d75d0203ff9 /ui/src/main/java/com/wireguard/android/model
parentcf25ae444860317dc24746424818cc1bc555ba97 (diff)
TunnelManager: enable Tasker support
Also fix up wording for the permission prompt that Tasker will show when initially setting this up. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/java/com/wireguard/android/model')
-rw-r--r--ui/src/main/java/com/wireguard/android/model/TunnelManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/src/main/java/com/wireguard/android/model/TunnelManager.java b/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
index e370f8de..eb818791 100644
--- a/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
+++ b/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
@@ -275,10 +275,7 @@ public final class TunnelManager extends BaseObservable {
return;
}
- /* We disable the below, for now, as the security model of allowing this
- * might take a bit more consideration.
- */
- if (true)
+ if (!Application.getSharedPreferences().getBoolean("allow_remote_control_intents", false))
return;
final State state;