Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Report Compose preferences collection errors across activity exit and recreation

Open Ratnesh5 opened this issue 3 weeks ago • 0 comments

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 ActivityAgnosticDialogs infrastructure.

Context

  • Split out from #22858.

Ratnesh5 avatar Nov 11 '26 13:11 Ratnesh5