From b7028896c7897f845b0a45531bc865fab8159332 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 1 Apr 2020 21:39:46 -0600 Subject: ObservableTunnel: do not cache key Reported-by: Reza Island's Signed-off-by: Jason A. Donenfeld --- ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/src') 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, Tunnel { - override val key = name + override val key + get() = name @Bindable override fun getName() = name -- cgit v1.2.3