remove the check for ContentResolver.getSyncAutomatically at getting accounts

This commit is contained in:
tibbi 2018-05-13 18:23:54 +02:00
parent 41acf03519
commit 477742a549

View file

@ -692,7 +692,7 @@ class ContactsHelper(val activity: Activity) {
val accounts = AccountManager.get(activity).accounts
accounts.forEach {
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1 && ContentResolver.getSyncAutomatically(it, ContactsContract.AUTHORITY)) {
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
val contactSource = ContactSource(it.name, it.type)
sources.add(contactSource)
}