Skip to content

Conversation

har-123
Copy link
Contributor

@har-123 har-123 commented Mar 8, 2025

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

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 :
before_DuplicateMenuItemFix

After :
after_DuplicateMenuFix

Fixes the following issue(s)

@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Mar 8, 2025
@ShareASmile ShareASmile added bug Issue is related to a bug waiting for review labels Mar 8, 2025
@KnockoffFeline

This comment has been minimized.

@Pabley
Copy link

Pabley commented Mar 8, 2025

Duplicate menu options are fixed, but now if you perform the back gesture the buttons on the top right disappear.

newpipe.mp4
newpipe2.mp4

@AudricV AudricV changed the title BF-11894 : Fix the Duplicate menu options in ChannelFragment Fix duplicate menu options in ChannelFragment Mar 9, 2025
@AudricV AudricV added the GUI Issue is related to the graphical user interface label Mar 9, 2025
@github-actions github-actions bot added size/medium PRs with less than 250 changed lines and removed size/small PRs with less than 50 changed lines labels Mar 12, 2025
@har-123

This comment was marked as spam.

Copy link
Contributor

@snaik20 snaik20 left a 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.

@Pabley
Copy link

Pabley commented Mar 13, 2025

Just did a quick test and I couldn't reproduce the issue. Thank you all for your efforts. :)

@snaik20 snaik20 force-pushed the bugfix/11894_fix_duplicate_menu_options branch from 6108404 to f289bea Compare March 16, 2025 07:12
Copy link

@TobiGr TobiGr merged commit c232193 into TeamNewPipe:dev Mar 16, 2025
7 checks passed
@Stypox Stypox mentioned this pull request Jul 17, 2025
11 tasks
whistlingwoods pushed a commit to whistlingwoods/FoxPipe that referenced this pull request Jul 27, 2025
…plicate_menu_options

Fix duplicate menu options in ChannelFragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug GUI Issue is related to the graphical user interface size/medium PRs with less than 250 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate three-dot-menu options appear in Comments/Playlist/Channel views

7 participants