From edba6406418578432134bbd70d88e7d19e0e1004 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 22 Mar 2020 00:38:15 -0600 Subject: 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 --- ui/src/main/java/com/wireguard/android/model/TunnelManager.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ui/src/main/java/com/wireguard/android') 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; -- cgit v1.2.3