allow empty accountName at getting a specific contact info too

This commit is contained in:
tibbi 2018-01-23 21:18:31 +01:00
parent d2d5f306e2
commit 79f4b38c8c
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
val number = getPhoneNumbers(id)[id] ?: ArrayList()
val emails = getEmails(id)[id] ?: ArrayList()
val events = getEvents(id)[id] ?: ArrayList()
val accountName = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME)
val accountName = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME) ?: ""
val starred = cursor.getIntValue(CommonDataKinds.StructuredName.STARRED)
val contactId = cursor.getIntValue(ContactsContract.Data.CONTACT_ID)
val thumbnailUri = cursor.getStringValue(CommonDataKinds.StructuredName.PHOTO_THUMBNAIL_URI) ?: ""