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

pull/131/head
Tom Hacohen 4 years ago
parent bc44062e93
commit 20a2c1b445

@ -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)
}

Loading…
Cancel
Save