diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-04-01 21:39:46 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-04-01 22:05:24 -0600 |
commit | b7028896c7897f845b0a45531bc865fab8159332 (patch) | |
tree | 67e5bbe4093a4d31e9d06ca7e7a9773eae2c1ead /ui | |
parent | c1e86acb3c41f5f2d6ce0107d1a8be951f2f3595 (diff) |
ObservableTunnel: do not cache key
Reported-by: Reza Island's <rezza.aji.ras@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt index bb462b27..e7134c51 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -24,7 +24,8 @@ class ObservableTunnel internal constructor( config: Config?, state: Tunnel.State ) : BaseObservable(), Keyed<String>, Tunnel { - override val key = name + override val key + get() = name @Bindable override fun getName() = name |