Anki-Android
Anki-Android copied to clipboard
Report Compose preferences collection errors across activity exit and recreation
Problem
When a Compose preference screen (such as LearnAheadSettingsFragment or TimeboxSettingsFragment) encounters a collection error (e.g., CollectionOpenFailure.LOCKED) on initial load or during background saves:
- If the activity has already finished (
activity.finish()) or is in the middle of recreation/backgrounding, the failure is logged rather than surfaced via an error dialog to the user on the next live activity. - Exiting or backgrounding the screen during a queued collection save currently drops or hides the error dialog without
ActivityAgnosticDialogsinfrastructure.
Context
- Split out from #22858.