diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-22 00:38:15 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-22 00:51:37 -0600 |
commit | edba6406418578432134bbd70d88e7d19e0e1004 (patch) | |
tree | faffd89cb2abf750e70324481f928d75d0203ff9 /ui/src/main/java/com | |
parent | cf25ae444860317dc24746424818cc1bc555ba97 (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')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/TunnelManager.java | 5 |
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; |