From 099c2110c06296fc028043f7f242f3030a07c9ef Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jan 2018 20:35:37 +0100 Subject: [PATCH] do not filter out contacts without names --- .../com/simplemobiletools/contacts/helpers/ContactsHelper.kt | 3 --- 1 file changed, 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 a1e45ba4..6cd84f0f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt @@ -46,9 +46,6 @@ class ContactsHelper(val activity: BaseSimpleActivity) { val firstName = cursor.getStringValue(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME) ?: "" val middleName = cursor.getStringValue(ContactsContract.CommonDataKinds.StructuredName.MIDDLE_NAME) ?: "" val surname = cursor.getStringValue(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME) ?: "" - if (firstName.isEmpty() && middleName.isEmpty() && surname.isEmpty()) - continue - val photoUri = cursor.getStringValue(ContactsContract.CommonDataKinds.StructuredName.PHOTO_URI) ?: "" val number = ArrayList() // proper value is obtained below val emails = ArrayList()