From c03c7fff39955d0e0e58163b14ca7728f7becea1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Apr 2018 18:23:36 +0200 Subject: [PATCH] do not refetch contacts before sharing --- .../simplemobiletools/contacts/adapters/ContactsAdapter.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/adapters/ContactsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/adapters/ContactsAdapter.kt index dd783836..347a6f88 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/adapters/ContactsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/adapters/ContactsAdapter.kt @@ -221,10 +221,8 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList - activity.shareContacts(filtered) - } + val filtered = contactItems.filter { contactsIDs.contains(it.id) } as ArrayList + activity.shareContacts(filtered) } override fun onViewRecycled(holder: ViewHolder) {