mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
Fixed accessing phone contacts
This commit is contained in:
@ -807,6 +807,10 @@ class ContactsHelper(val context: Context) {
|
||||
}
|
||||
sources.addAll(contentResolverAccounts)
|
||||
|
||||
if (!sources.any { it.type.startsWith("com.google") || it.type.startsWith("com.android") || it.type.startsWith("com.qualcomm") }) {
|
||||
sources.add(ContactSource("", "", context.getString(R.string.phone_storage)))
|
||||
}
|
||||
|
||||
return sources
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user