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>
This commit is contained in:
Samuel Holland 2017-08-22 21:51:25 -05:00
parent 353028420b
commit 3a264f7020

View File

@ -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