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

Toolbar issues with Menu screen #6281

Open
nbradbury opened this issue Apr 15, 2022 · 5 comments
Open

Toolbar issues with Menu screen #6281

nbradbury opened this issue Apr 15, 2022 · 5 comments
Labels
feature: more menu Related to new Hub Menu tab type: bug A confirmed bug.

Comments

@nbradbury
Copy link
Contributor

When I visit the Menu screen, the collapsible toolbar disappears entirely. If I go from there to the Reviews list, the toolbar briefly says "Menu" before being replaced by "Reviews." If I go from the Menu screen to the Inbox screen, the toolbar says "Menu."

menu

@nbradbury nbradbury added type: bug A confirmed bug. feature: more menu Related to new Hub Menu tab labels Apr 15, 2022
@hafizrahman
Copy link
Contributor

Thank you for the report, Nick! For this part:

When I visit the Menu screen, the collapsible toolbar disappears entirely.

The Figma design does exclude the toolbar:
Screen Shot 2022-04-16 at 11 22 25

@hichamboushaba
Copy link
Member

If I go from the Menu screen to the Inbox screen, the toolbar says "Menu."

@JorgeMucientes it seems the InboxFragment doesn't override getFragmentTitle()

@hichamboushaba
Copy link
Member

If I go from there to the Reviews list, the toolbar briefly says "Menu" before being replaced by "Reviews."

@nbradbury hopefully this PR #6255 will improve this, as the logic for the toolbar will be moved to onViewCreated instead of onDestinationChanged, onDestinationChanged is triggered before the actual navigation event, which causes having the wrong title for a short duration.

@JorgeMucientes
Copy link
Contributor

JorgeMucientes commented Apr 18, 2022

Thanks for highlighting this @nbradbury

@JorgeMucientes it seems the InboxFragment doesn't override getFragmentTitle()

Yeah! That is fixed in this PR so the title shold display "Inbox" once it is merged. Thanks for the ping @hichamboushaba

Although there is the additional issue of seeing the toolbar flickering with the "Menu" title for some milliseconds when navigating from Menu fragment. Removing the override from MoreMenuFragment should fix the problem:

    override fun getFragmentTitle() = getString(R.string.more_menu)

@hichamboushaba
Copy link
Member

Removing the override from MoreMenuFragment should fix the problem:

Yes, nice catch, I'll remove it in the PR #6255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: more menu Related to new Hub Menu tab type: bug A confirmed bug.
Projects
None yet
Development

No branches or pull requests

4 participants