Ver código fonte

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>
master
Samuel Holland 7 anos atrás
pai
commit
3a264f7020
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      app/src/main/java/com/wireguard/android/QuickTileService.java

+ 1
- 0
app/src/main/java/com/wireguard/android/QuickTileService.java Ver arquivo

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


Carregando…
Cancelar
Salvar