fix(#303, #240): fall back to an account-less request for accounts the app can't see

This commit is contained in:
makiolaj committed 2026-11-13 18:52:42 +01:00
1 parent d1c601a6e2
commit 55934664e2
8 files changed
+82 -23

No files matched your search

+4 -2
View File
@@ -17,8 +17,10 @@ the package list (recurring writes, save conflicts, reminder delivery).
a manual request from the drawer's "Sync now" (#240), which like the
system's own "Sync now" also runs for accounts whose auto-sync is off. Both
go through `SyncRequester` and only ask account types with a calendar sync
adapter (visible to the app via a `<queries>` entry); whether and when the
adapter syncs stays its call.
adapter (visible to the app via a `<queries>` entry). From Android 13 a
request naming an account the app can't see is silently dropped, so those
accounts share one account-less request, which covers every calendar
account. Whether and when the adapter syncs stays its call.
2. **Observer-driven UI.** A `ContentObserver` on the provider triggers
re-queries; every screen recomposes from fresh provider state. After a
write, nothing is patched by hand — the views refresh from the provider.