mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
[Sync Framework] Android 14+: Cancel forever pending address book account syncs (#1643)
* Also cancel sync for address books accounts * Cancel known account directly --------- Co-authored-by: Ricki Hirner <hirner@bitfire.at>
This commit is contained in:
@@ -121,8 +121,8 @@ class SyncAdapterImpl @Inject constructor(
|
||||
// See: https://github.com/bitfireAT/davx5-ose/issues/1458
|
||||
if (Build.VERSION.SDK_INT >= 34) {
|
||||
logger.fine("Android 14+ bug: Canceling forever pending sync adapter framework sync request for " +
|
||||
"account=$account authority=$authority upload=$upload")
|
||||
syncFrameworkIntegration.cancelSync(account, authority, extras)
|
||||
"account=$accountOrAddressBookAccount authority=$authority upload=$upload")
|
||||
syncFrameworkIntegration.cancelSync(accountOrAddressBookAccount, authority, extras)
|
||||
}
|
||||
|
||||
/* Because we are not allowed to observe worker state on a background thread, we can not
|
||||
|
||||
Reference in New Issue
Block a user