Fixed contacts list not updated when side by side with contact editor fragment
This commit is contained in:
parent
3909d9991d
commit
110295a4c1
1 changed files with 1 additions and 4 deletions
|
@ -80,10 +80,7 @@ class ContactsListViewModel : ViewModel() {
|
||||||
getSelectedContactsList()
|
getSelectedContactsList()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevent blinking items when list hasn't changed
|
contactsList.postValue(list)
|
||||||
if (list.isEmpty() || list.size != contactsList.value.orEmpty().size) {
|
|
||||||
contactsList.postValue(list)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun deleteContact(contact: Contact?) {
|
fun deleteContact(contact: Contact?) {
|
||||||
|
|
Loading…
Reference in a new issue