diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-10-29 01:37:02 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-10-29 01:37:02 +0200 |
commit | 6b52907fdb9708a3ad074f4cd3082c0d3c6450d1 (patch) | |
tree | 1aac15e37ce87e42ace0f275e2d727197a3e3710 | |
parent | 2873188d51fbb0b6c3976fb3c5a704d26e9939a7 (diff) |
WIP: ui: notify persistentKeepalive
-rw-r--r-- | ui/src/main/java/com/wireguard/android/viewmodel/PeerDetail.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/main/java/com/wireguard/android/viewmodel/PeerDetail.kt b/ui/src/main/java/com/wireguard/android/viewmodel/PeerDetail.kt index 80b32fd5..3b6f42be 100644 --- a/ui/src/main/java/com/wireguard/android/viewmodel/PeerDetail.kt +++ b/ui/src/main/java/com/wireguard/android/viewmodel/PeerDetail.kt @@ -46,6 +46,10 @@ class PeerDetail : BaseObservable { @get:Bindable var persistentKeepalive: Optional<Int> = Optional.empty() + set(value) { + field = value + notifyPropertyChanged(BR.persistentKeepalive) + } constructor(other: Peer) { peer = other |