use a shorter version of Contacts authority constant
This commit is contained in:
parent
5cb9f886b6
commit
e7ee92b8c7
|
@ -633,7 +633,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||||
|
|
||||||
val accountManager = AccountManager.get(activity)
|
val accountManager = AccountManager.get(activity)
|
||||||
accountManager.accounts.filter { it.name.contains("@") || localAccountTypes.contains(it.type) }.forEach {
|
accountManager.accounts.filter { it.name.contains("@") || localAccountTypes.contains(it.type) }.forEach {
|
||||||
if (ContentResolver.getIsSyncable(it, ContactsContract.Contacts.CONTENT_URI.authority) == 1) {
|
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
|
||||||
val contactSource = ContactSource(it.name, it.type)
|
val contactSource = ContactSource(it.name, it.type)
|
||||||
sources.add(contactSource)
|
sources.add(contactSource)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue