summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java/com/wireguard/android/QuickTileService.kt
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-26 22:26:53 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-26 22:30:10 -0600
commit4d6837ea53cc5f3ab92d65c51db25993f6597031 (patch)
tree5ebad582d91309fa52d9ab607f0e6fd47d9bd9d1 /ui/src/main/java/com/wireguard/android/QuickTileService.kt
parentc8ac970d11594f934f0107c51796f009fa1b0680 (diff)
ObservableTunnel: port to kotlin
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/java/com/wireguard/android/QuickTileService.kt')
-rw-r--r--ui/src/main/java/com/wireguard/android/QuickTileService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/QuickTileService.kt b/ui/src/main/java/com/wireguard/android/QuickTileService.kt
index cd95f12d..6e17531a 100644
--- a/ui/src/main/java/com/wireguard/android/QuickTileService.kt
+++ b/ui/src/main/java/com/wireguard/android/QuickTileService.kt
@@ -54,7 +54,7 @@ class QuickTileService : TileService() {
tile.icon = if (tile.icon == iconOn) iconOff else iconOn
tile.updateTile()
}
- tunnel!!.setState(Tunnel.State.TOGGLE).whenComplete { _, t ->
+ tunnel!!.setStateAsync(Tunnel.State.TOGGLE).whenComplete { _, t ->
if (t == null) {
updateTile()
} else {