oppia-android
oppia-android copied to clipboard
Issue with audio state in low end phones
Describe the bug The audio state is not maintained in the exploration player.
To Reproduce Steps to reproduce the behavior:
- Turn on Don't keep activities in developer mode
- Open oppia app and select any story
- Select any exploration
- Play audio for the exploration and minimize the app while keeping the audio seek bar somewhere in the middle
- Then open the app again the state of the audio player will not be maintained
Expected behavior Audio progress should be maintained when app is opened again
Screenshots If applicable, add screenshots or videos to help explain your problem.
Device
- Device/emulator being used
- SDK version
Additional context This is can be easily managed using saved instance state
I would like to work on this issue
As per my current understanding, this needs work under AudioFragment
Fragment in turn which is under ExplorationFragment
inside the ExplorationActivity
.
This will require saving and restoring the state of ExplorationFragment
and further AudioFragment
saving and restoring the PlayStatus
/ UiAudioPlayStatus
of the audio.
@aggarwalpulkit596 Please correct me if I'm wrong any guidance/suggestion is highly appreciated.