mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-26 16:18:25 +01:00
do not filter out contacts without names
This commit is contained in:
parent
e19e367852
commit
099c2110c0
@ -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<PhoneNumber>() // proper value is obtained below
|
||||
val emails = ArrayList<Email>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user