diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-22 21:51:25 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-22 23:10:41 -0500 |
commit | 3a264f7020005383bf98e4d3f4d39c1b10477bf1 (patch) | |
tree | 46f62b9c59be9049048e7cfec94dae796e4c960d /app | |
parent | 353028420b92774d9a6ccdfe9318481de00b17e7 (diff) |
QuickTileService: Update the tile once on service init
This makes the tile show the correct info when it is first added.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/QuickTileService.java | 1 |
1 files changed, 1 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 dcd51b66..ddadf29d 100644 --- a/app/src/main/java/com/wireguard/android/QuickTileService.java +++ b/app/src/main/java/com/wireguard/android/QuickTileService.java @@ -38,6 +38,7 @@ public class QuickTileService extends TileService { if (service == null) bindService(new Intent(this, VpnService.class), new ServiceConnectionCallbacks(), Context.BIND_AUTO_CREATE); + TileService.requestListeningState(this, new ComponentName(this, getClass())); } @Override |