mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Go back after deleting CardDAV config
This commit is contained in:
parent
d8c406320c
commit
0cfdedc09a
2 changed files with 10 additions and 0 deletions
|
|
@ -79,5 +79,12 @@ class CardDavAddressBookConfigurationFragment : GenericMainFragment() {
|
|||
goBack()
|
||||
}
|
||||
}
|
||||
|
||||
viewModel.friendListRemovedEvent.observe(viewLifecycleOwner) {
|
||||
it.consume {
|
||||
Log.i("$TAG CardDAV account removed, going back")
|
||||
goBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ class CardDavViewModel : GenericViewModel() {
|
|||
|
||||
val syncSuccessfulEvent = MutableLiveData<Event<Boolean>>()
|
||||
|
||||
val friendListRemovedEvent = MutableLiveData<Event<Boolean>>()
|
||||
|
||||
private lateinit var friendList: FriendList
|
||||
|
||||
private val friendListListener = object : FriendListListenerStub() {
|
||||
|
|
@ -148,6 +150,7 @@ class CardDavViewModel : GenericViewModel() {
|
|||
)
|
||||
)
|
||||
)
|
||||
friendListRemovedEvent.postValue(Event(true))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue