Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bug when video continues to play when exiting content #251

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

dixidroid
Copy link
Contributor

There is an issue on Android where 'Fragment.onDestroy()' is not called after one fragment was replaced with another using the 'FragmentManager.replace()' function without 'addToBackStack()'. And after a long discussion with @volodymyr-chekyrta we decided to make a workaround for this issue.

All new CourseUnitContainerFragment instances will be added with 'addToBackStack()' and then to go to the previous fragment we need to find it and call 'popBackStack(previousFragmentTagName)'.

Using this workaround, also, was fixed a bug where the 'Back to outline' button would not work.

@k1rill k1rill merged commit 9df8df2 into openedx:develop Mar 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants