Skip to content

Conversation

@janiceferns02
Copy link
Contributor

This PR fixes the issue where multiple OutlineFragment instances are added when the menu item is clicked repeatedly in quick succession in the ReaderActivity.

Screenshot 2025-10-17 at 3 38 56 PM

Fix: Before adding OutlineFragment, we now check if it already exists in the FragmentManager using findFragmentByTag.

Tested by repeatedly tapping the ≡ menu icon multiple times very quickly and confirmed that only a single instance of OutlineFragment is ever created.

@mickael-menu
Copy link
Member

Thank you @janiceferns02. Could you address the formatting issue? You can run make format in the project to do so.

@janiceferns02
Copy link
Contributor Author

@mickael-menu I have resolved the formatting issue. Am I still missing something?

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the changes @janiceferns02

@mickael-menu mickael-menu merged commit d302865 into readium:develop Oct 21, 2025
4 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

Development

Successfully merging this pull request may close these issues.

2 participants