Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 438f9671 authored by Sunik Kupfer's avatar Sunik Kupfer Committed by GitHub
Browse files

[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: default avatarRicki Hirner <hirner@bitfire.at>
parent a0932388
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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