From 3a264f7020005383bf98e4d3f4d39c1b10477bf1 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 22 Aug 2017 21:51:25 -0500 Subject: 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 --- app/src/main/java/com/wireguard/android/QuickTileService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/com/wireguard/android') 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 -- cgit v1.2.3