use a shorter version of Contacts authority constant

This commit is contained in:
tibbi 2018-04-29 19:39:32 +02:00
parent 5cb9f886b6
commit e7ee92b8c7

View file

@ -633,7 +633,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
val accountManager = AccountManager.get(activity)
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)
sources.add(contactSource)
}