Skip to content

Commit 477742a

Browse files
committed
remove the check for ContentResolver.getSyncAutomatically at getting accounts
1 parent 41acf03 commit 477742a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ class ContactsHelper(val activity: Activity) {
692692

693693
val accounts = AccountManager.get(activity).accounts
694694
accounts.forEach {
695-
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1 && ContentResolver.getSyncAutomatically(it, ContactsContract.AUTHORITY)) {
695+
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
696696
val contactSource = ContactSource(it.name, it.type)
697697
sources.add(contactSource)
698698
}

0 commit comments

Comments
 (0)