QuickTileService: wait for tunnels to load
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -53,6 +53,10 @@ class QuickTileService : TileService() {
|
||||
|
||||
override fun onClick() {
|
||||
applicationScope.launch {
|
||||
if (tunnel == null) {
|
||||
Application.getTunnelManager().getTunnels()
|
||||
updateTile()
|
||||
}
|
||||
when (val tunnel = tunnel) {
|
||||
null -> {
|
||||
Log.d(TAG, "No tunnel set, so launching main activity")
|
||||
|
||||
Reference in New Issue
Block a user