-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix duplicate menu options in ChannelFragment #12083
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 duplicate menu options in ChannelFragment #12083
Conversation
This comment has been minimized.
This comment has been minimized.
Duplicate menu options are fixed, but now if you perform the back gesture the buttons on the top right disappear. newpipe.mp4newpipe2.mp4 |
app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Show resolved
Hide resolved
This comment was marked as spam.
This comment was marked as spam.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG. Just fix the sonarcloud warning on the onCreate
method.
Just did a quick test and I couldn't reproduce the issue. Thank you all for your efforts. :) |
6108404
to
f289bea
Compare
|
…plicate_menu_options Fix duplicate menu options in ChannelFragment
What is it?
Description of the changes in your PR
MenuProvider is being added in onCreate, but it’s only removed in onDestroy. If the fragment is recreated (e.g., due to configuration changes), the menu Provider might be added again without being properly removed first, leading to duplicate menu items.
Before/After Screenshots/Screen Record
Before :

After :

Fixes the following issue(s)