diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-26 22:26:53 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-26 22:30:10 -0600 |
commit | 4d6837ea53cc5f3ab92d65c51db25993f6597031 (patch) | |
tree | 5ebad582d91309fa52d9ab607f0e6fd47d9bd9d1 /ui/src/main/java/com/wireguard/android/QuickTileService.kt | |
parent | c8ac970d11594f934f0107c51796f009fa1b0680 (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.kt | 2 |
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 { |