From 01779e05cc4a9aa1d8e32f9be183199dcaa537d6 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 28 Oct 2023 23:18:48 +0200 Subject: WIP: ui: fix onPersistentKeepaliveChange --- ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e4916b55..866601d1 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -228,13 +228,13 @@ class ObservableTunnel internal constructor( return peer } - override fun onPersistentKeepaliveChange(publicKey: Key, newPersistentKeepalive: Integer?) { + override fun onPersistentKeepaliveChange(publicKey: Key, newPersistentKeepalive: Int?) { Application.getCoroutineScope().launch { onPersistentKeepaliveChanged(publicKey, newPersistentKeepalive) } } - private fun onPersistentKeepaliveChanged(publicKey: Key, newPersistentKeepalive: Integer?) { + private fun onPersistentKeepaliveChanged(publicKey: Key, newPersistentKeepalive: Int?) { var peer: PeerDetail = lookupPeer(publicKey) peer.persistentKeepalive = newPersistentKeepalive -- cgit v1.2.3