diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 03:57:02 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 03:57:02 +0200 |
commit | 95ba8c01b07af2b6f4ca94c6288588af9c3bdc32 (patch) | |
tree | f04cc2acfd2dc375788e21069bc5b93cf08b3189 /app/src/main/java | |
parent | ffa908d8a06f9b3ee5b488d2c5142da233d562ac (diff) |
QuickTileService: show intermediate state when changing
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/QuickTileService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java index 008fdee8..8630ccfd 100644 --- a/app/src/main/java/com/wireguard/android/QuickTileService.java +++ b/app/src/main/java/com/wireguard/android/QuickTileService.java @@ -66,6 +66,9 @@ public class QuickTileService extends TileService { @Override public void onClick() { if (tunnel != null) { + final Tile tile = getQsTile(); + tile.setIcon(tile.getIcon() == iconOn ? iconOff : iconOn); + tile.updateTile(); tunnel.setState(State.TOGGLE).whenComplete(this::onToggleFinished); } else { final Intent intent = new Intent(this, MainActivity.class); |