Skip to content

Commit ca7dc5f

Browse files
authored
android: ensure in secure state to interact with quicktile (#622)
* android: ensure in secure state to interact with quicktile Updates tailscale/tailscale#14628 Signed-off-by: davfsa <[email protected]> * Update android/src/main/java/com/tailscale/ipn/QuickToggleService.java Signed-off-by: davfsa <[email protected]> --------- Signed-off-by: davfsa <[email protected]>
1 parent 976ba8e commit ca7dc5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/src/main/java/com/tailscale/ipn/QuickToggleService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ public void onStopListening() {
6060
}
6161
}
6262

63-
@SuppressWarnings("deprecation")
6463
@Override
6564
public void onClick() {
65+
unlockAndRun(this::secureOnClick);
66+
}
67+
68+
@SuppressWarnings("deprecation")
69+
private void secureOnClick() {
6670
boolean r;
6771
synchronized (lock) {
6872
r = UninitializedApp.get().isAbleToStartVPN();

0 commit comments

Comments
 (0)