mirror of
https://github.com/etesync/android
synced 2025-06-24 08:58:50 +00:00
Contacts sync: try setting the sync to expedited so it maybe happens sooner.
This commit is contained in:
parent
bc44062e93
commit
20a2c1b445
@ -64,6 +64,7 @@ class AddressBooksSyncAdapterService : SyncAdapterService() {
|
|||||||
val syncExtras = Bundle(extras)
|
val syncExtras = Bundle(extras)
|
||||||
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true)
|
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true)
|
||||||
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true)
|
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true)
|
||||||
|
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true) // run immediately (don't queue)
|
||||||
ContentResolver.requestSync(addressBookAccount, ContactsContract.AUTHORITY, syncExtras)
|
ContentResolver.requestSync(addressBookAccount, ContactsContract.AUTHORITY, syncExtras)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user