remove the check for ContentResolver.getSyncAutomatically at getting accounts
This commit is contained in:
parent
41acf03519
commit
477742a549
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ class ContactsHelper(val activity: Activity) {
|
||||||
|
|
||||||
val accounts = AccountManager.get(activity).accounts
|
val accounts = AccountManager.get(activity).accounts
|
||||||
accounts.forEach {
|
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)
|
val contactSource = ContactSource(it.name, it.type)
|
||||||
sources.add(contactSource)
|
sources.add(contactSource)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue