1
0
mirror of https://github.com/etesync/android synced 2025-02-22 20:42:04 +00:00

Contacts sync: try setting the sync to expedited so it maybe happens sooner.

This commit is contained in:
Tom Hacohen 2020-09-06 10:54:09 +03:00
parent bc44062e93
commit 20a2c1b445

View File

@ -64,6 +64,7 @@ class AddressBooksSyncAdapterService : SyncAdapterService() {
val syncExtras = Bundle(extras)
syncExtras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, 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)
}