mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	allow empty account name at contact fetching
This commit is contained in:
		| @@ -52,7 +52,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) { | |||||||
|                         val number = ArrayList<PhoneNumber>()       // proper value is obtained below |                         val number = ArrayList<PhoneNumber>()       // proper value is obtained below | ||||||
|                         val emails = ArrayList<Email>() |                         val emails = ArrayList<Email>() | ||||||
|                         val events = ArrayList<Event>() |                         val events = ArrayList<Event>() | ||||||
|                         val accountName = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME) |                         val accountName = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME) ?: "" | ||||||
|                         val starred = cursor.getIntValue(CommonDataKinds.StructuredName.STARRED) |                         val starred = cursor.getIntValue(CommonDataKinds.StructuredName.STARRED) | ||||||
|                         val contactId = cursor.getIntValue(ContactsContract.Data.CONTACT_ID) |                         val contactId = cursor.getIntValue(ContactsContract.Data.CONTACT_ID) | ||||||
|                         val thumbnailUri = cursor.getStringValue(CommonDataKinds.StructuredName.PHOTO_THUMBNAIL_URI) ?: "" |                         val thumbnailUri = cursor.getStringValue(CommonDataKinds.StructuredName.PHOTO_THUMBNAIL_URI) ?: "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user