mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
do not show filter contact source dialog if theres no available sources
This commit is contained in:
@ -231,7 +231,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
cursor = activity.contentResolver.query(uri, projection, null, null, null)
|
||||
if (cursor?.moveToFirst() == true) {
|
||||
do {
|
||||
val name = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME)
|
||||
val name = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME) ?: continue
|
||||
accounts.add(name)
|
||||
} while (cursor.moveToNext())
|
||||
}
|
||||
|
Reference in New Issue
Block a user