UweTrottmann / SeriesGuide

Track your favorite TV shows and movies on Android devices.
https://seriesgui.de
Apache License 2.0
1.94k stars 400 forks source link

Android 14: fix sync not getting automatically triggered #953

Closed UweTrottmann closed 2 months ago

UweTrottmann commented 9 months ago

Check emails from Stefan with details.

It appears that on Android 14 (API 34) the ContentResolver.isSyncPending(account, authority) API always returns true, regardless if a sync is actually pending.

It appears this happens once ContentResolver.setSyncAutomatically(account, authority, true) is called (even before any ContentResolver.requestSync calls).

The value does not change

The account settings UI also always shows the (non-animated) refresh indicator:

Did not find any issues on the Google issue tracker (if that's the right one?) or online, yet. Edit: better link.

User confirmed my observations on the emulator.

Quick fix in #952

Long-term fix is probably switching to WorkManager APIs. Looks like upcoming 2.9 release is a good fit.

UweTrottmann commented 5 months ago

Try to verify this on my own device now that Android 14 has been available for a while.

UweTrottmann commented 2 months ago

Yep, also happens on my own Samsung Android 14 device. So leaving the workaround in.