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,11 +80,8 @@ class ContactsListViewModel : ViewModel() {
|
|||
getSelectedContactsList()
|
||||
}
|
||||
|
||||
// Prevent blinking items when list hasn't changed
|
||||
if (list.isEmpty() || list.size != contactsList.value.orEmpty().size) {
|
||||
contactsList.postValue(list)
|
||||
}
|
||||
}
|
||||
|
||||
fun deleteContact(contact: Contact?) {
|
||||
contact ?: return
|
||||
|
|
Loading…
Reference in a new issue