summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-22 21:51:25 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-22 23:10:41 -0500
commitf76ce671429cfcbd332c6824583c001e0c3586fd (patch)
tree46f62b9c59be9049048e7cfec94dae796e4c960d /app/src/main
parent81c1df4ba4047facadc1e111a118a368e0528fb5 (diff)
QuickTileService: Update the tile once on service init
This makes the tile show the correct info when it is first added.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/wireguard/android/QuickTileService.java1
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