aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app
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
commit3a264f7020005383bf98e4d3f4d39c1b10477bf1 (patch)
tree46f62b9c59be9049048e7cfec94dae796e4c960d /app
parentAdd an adapter for binding an ObservableList to a LinearLayout (diff)
downloadwireguard-android-3a264f7020005383bf98e4d3f4d39c1b10477bf1.tar.xz
wireguard-android-3a264f7020005383bf98e4d3f4d39c1b10477bf1.zip
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.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