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

Temporary fix for main screen menu visibility #3281

Merged
merged 1 commit into from
Mar 28, 2020

Conversation

mauriciocolli
Copy link
Contributor

What is it?

  • Bug fix
  • Feature

Long description of the changes in your PR

When restoring the state of the adapter, all the fragments' menu visibility were set to false, effectively disabling the menu from the user until he switched pages or another event that triggered the menu to be visible again happened.

As the bug happens deep inside the adapter restore method and the require field to fix it is private, a copy of the class was needed.

FragmentStatePagerAdapter is deprecated and should be replaced with its ViewPager2 counterpart, until then, this should do it.

Testing apk

fix-main-screen-menu-creation.apk.zip

When restoring the state of the adapter, all the fragments' menu
visibility were set to false, effectively disabling the menu from the
user until he switched pages or another event that triggered the menu to
be visible again happened.

FragmentStatePagerAdapter is deprecated and should be replaced with its
ViewPager2 counterpart, until then, this should do it.
@mauriciocolli mauriciocolli added bug Issue is related to a bug ASAP Issue needs to be fixed as soon as possible GUI Issue is related to the graphical user interface labels Mar 27, 2020
@mauriciocolli mauriciocolli mentioned this pull request Mar 27, 2020
@XiangRongLin
Copy link
Collaborator

Your apk does solves the issue

@TobiGr TobiGr merged commit bbd8751 into TeamNewPipe:dev Mar 28, 2020
@TobiGr TobiGr mentioned this pull request Mar 29, 2020
@mauriciocolli mauriciocolli deleted the fix-main-screen-menu-creation branch March 30, 2020 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug GUI Issue is related to the graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants