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

[New study screen] Voice record deleted after putting the app on the background

Open BrayanDSO opened this issue 10 months ago • 4 comments

BrayanDSO avatar Jan 05 '26 15:01 BrayanDSO

Hi, I think recording was being lost because CheckPronunciationFragment.onPause() explicitly called viewModel.resetAll(). I removed this onPause override, which allows the ViewModel to correctly persist the recording state and file reference when the app is backgrounded.

Before

https://github.com/user-attachments/assets/face7482-73dc-4a67-8051-cee3847dbaec

After

https://github.com/user-attachments/assets/b88dccf5-f306-496e-a18f-bea85c224667

Ayush-Patel-56 avatar Jan 24 '26 09:01 Ayush-Patel-56

I've already fixed it, and your fix causes other bugs. Try focusing on issues that don't have anyone assigned.

BrayanDSO avatar Jan 24 '26 10:01 BrayanDSO

Hi 👋
I would like to work on this issue.
Can you please assign it to me?

akkicodes-dev avatar Feb 09 '26 07:02 akkicodes-dev

Hi @akkicodes-dev, This issue is already fixed by Bryan.

Ayush-Patel-56 avatar Feb 09 '26 09:02 Ayush-Patel-56