From 4da25f25f2987bb3cb13e5f471ad46567c762031 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 25 Dec 2017 13:36:03 +0100 Subject: [PATCH] do not filter out not-dirty accounts --- .../com/simplemobiletools/contacts/helpers/ContactsHelper.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt index 06ce35d9..4d990507 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt @@ -28,11 +28,9 @@ class ContactsHelper(val activity: BaseSimpleActivity) { ContactsContract.RawContacts.ACCOUNT_NAME ) - val selection = "${ContactsContract.RawContacts.DIRTY} = ?" - val selectionArgs = arrayOf("0") var cursor: Cursor? = null try { - cursor = activity.contentResolver.query(uri, projection, selection, selectionArgs, null) + cursor = activity.contentResolver.query(uri, projection, null, null, null) if (cursor?.moveToFirst() == true) { do { val name = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME)