do not refetch contacts before sharing
This commit is contained in:
parent
510da6b140
commit
c03c7fff39
|
@ -221,10 +221,8 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
|||
contactsIDs.add(contactItems[it].id)
|
||||
}
|
||||
|
||||
ContactsHelper(activity).getContacts {
|
||||
val filtered = it.filter { contactsIDs.contains(it.id) } as ArrayList<Contact>
|
||||
activity.shareContacts(filtered)
|
||||
}
|
||||
val filtered = contactItems.filter { contactsIDs.contains(it.id) } as ArrayList<Contact>
|
||||
activity.shareContacts(filtered)
|
||||
}
|
||||
|
||||
override fun onViewRecycled(holder: ViewHolder) {
|
||||
|
|
Loading…
Reference in New Issue