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() {
|
override fun onClick() {
|
||||||
applicationScope.launch {
|
applicationScope.launch {
|
||||||
|
if (tunnel == null) {
|
||||||
|
Application.getTunnelManager().getTunnels()
|
||||||
|
updateTile()
|
||||||
|
}
|
||||||
when (val tunnel = tunnel) {
|
when (val tunnel = tunnel) {
|
||||||
null -> {
|
null -> {
|
||||||
Log.d(TAG, "No tunnel set, so launching main activity")
|
Log.d(TAG, "No tunnel set, so launching main activity")
|
||||||
|
|||||||
Reference in New Issue
Block a user