Fixed accessing phone contacts

This commit is contained in:
Agnieszka C
2021-12-07 18:15:19 +01:00
parent b5ded3df18
commit 19e964d3a2
35 changed files with 51 additions and 13 deletions

View File

@ -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
}