do not refetch contacts before sharing

This commit is contained in:
tibbi 2018-04-08 18:23:36 +02:00
parent 510da6b140
commit c03c7fff39
1 changed files with 2 additions and 4 deletions

View File

@ -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) {