mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
properly refresh Contacts and Favorites fragments at delete via Search
This commit is contained in:
@ -160,7 +160,7 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||
finishActMode()
|
||||
} else {
|
||||
removeSelectedItems()
|
||||
refreshListener?.refreshContacts(FAVORITES_TAB_MASK)
|
||||
refreshListener?.refreshContacts(CONTACTS_TAB_MASK or FAVORITES_TAB_MASK)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -138,6 +138,10 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||
} else if (this !is RecentsFragment) {
|
||||
setupContactsFavoritesAdapter(contacts)
|
||||
}
|
||||
|
||||
if (this is ContactsFragment || this is FavoritesFragment) {
|
||||
contactsIgnoringSearch = (fragment_list?.adapter as? ContactsAdapter)?.contactItems ?: ArrayList()
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupGroupsAdapter(contacts: ArrayList<Contact>) {
|
||||
|
Reference in New Issue
Block a user