[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:
Sunik Kupfer
2025-08-06 12:07:49 +02:00
committed by GitHub
parent a093238864
commit 438f967152

View File

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