summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-10-28 23:26:11 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-10-28 23:26:11 +0200
commit4f72a53c5727d2aaab7a43e73f08d712dbd7d3bb (patch)
tree08fff955cb2041a65bbc030617fd83e39c8cb026
parent01779e05cc4a9aa1d8e32f9be183199dcaa537d6 (diff)
WIP: ui: fix onPersistentKeepaliveChanged
-rw-r--r--ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt2
1 files changed, 1 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 866601d1..03529454 100644
--- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt
+++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt
@@ -237,7 +237,7 @@ class ObservableTunnel internal constructor(
private fun onPersistentKeepaliveChanged(publicKey: Key, newPersistentKeepalive: Int?) {
var peer: PeerDetail = lookupPeer(publicKey)
- peer.persistentKeepalive = newPersistentKeepalive
+ peer.persistentKeepalive = Optional.ofNullable(newPersistentKeepalive)
}
override fun onAllowedIpsChange(publicKey: Key, addNetworks: List<InetNetwork>?, removeNetworks: List<InetNetwork>?) {