Skip to content

Commit 6414de1

Browse files
committed
QuickTileService: wait for tunnels to load
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent fa989fe commit 6414de1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/src/main/java/com/wireguard/android/QuickTileService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class QuickTileService : TileService() {
5353

5454
override fun onClick() {
5555
applicationScope.launch {
56+
if (tunnel == null) {
57+
Application.getTunnelManager().getTunnels()
58+
updateTile()
59+
}
5660
when (val tunnel = tunnel) {
5761
null -> {
5862
Log.d(TAG, "No tunnel set, so launching main activity")

0 commit comments

Comments
 (0)