summaryrefslogtreecommitdiffhomepage
path: root/ui/src
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-10-28 23:18:48 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-10-28 23:18:48 +0200
commit01779e05cc4a9aa1d8e32f9be183199dcaa537d6 (patch)
tree1e543f4eae63d17c38276ddb894b5ea725b6edc6 /ui/src
parentadc994913a16bfee54a6b2f05bff0267e643a891 (diff)
WIP: ui: fix onPersistentKeepaliveChange
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt4
1 files 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