Skip to content

Commit c03c7ff

Browse files
committed
do not refetch contacts before sharing
1 parent 510da6b commit c03c7ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/adapters/ContactsAdapter.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
221221
contactsIDs.add(contactItems[it].id)
222222
}
223223

224-
ContactsHelper(activity).getContacts {
225-
val filtered = it.filter { contactsIDs.contains(it.id) } as ArrayList<Contact>
226-
activity.shareContacts(filtered)
227-
}
224+
val filtered = contactItems.filter { contactsIDs.contains(it.id) } as ArrayList<Contact>
225+
activity.shareContacts(filtered)
228226
}
229227

230228
override fun onViewRecycled(holder: ViewHolder) {

0 commit comments

Comments
 (0)