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

fix: some `Don't keep activities` scenarios

Open BrayanDSO opened this issue 1 month ago • 2 comments

Purpose / Description

Handle some Don't keep activities scenarios. There are some other scenarios to fix, like the card counts being 0 0 0 in the study screen, but they will be fixed later.

Blocked by #19646 and #19645

How Has This Been Tested?

Emulator 31 AOSP with Don't keep activities enabled

https://github.com/user-attachments/assets/2d7236a6-2a2f-4845-aa8a-5e676d75de63

https://github.com/user-attachments/assets/c955bc5f-f762-4724-8dc8-f78006a7530b

Learning (optional, can help others)

SavedStateHandle has methods for saving/restoring a StateFlow

Checklist

Please, go through these checks before submitting the PR.

  • [X] You have a descriptive commit message with a short title (first line, max 50 chars).
  • [X] You have commented your code, particularly in hard-to-understand areas
  • [X] You have performed a self-review of your own code
  • [X] UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • [ ] UI Changes: You have tested your change using the Google Accessibility Scanner

BrayanDSO avatar Nov 29 '25 16:11 BrayanDSO

@BrayanDSO How would you feel about leaving this after the cut for 2.24?

I'd be concerned we're not putting enough eyeballs on this before we cut for a release

david-allison avatar Nov 29 '25 16:11 david-allison

Works for me.

BrayanDSO avatar Nov 29 '25 16:11 BrayanDSO