maui
maui copied to clipboard
Fix TabBar visibility when navigating back from a non-tabbed page to a tabbed page
Root Cause:
The issue occurred because the code checked the parent ShellItem for tab visibility, even when Shell.GetTabBarIsVisible(Page) returned true, leading to incorrect tab visibility behavior.
Description of Change:
The fix ensures that if Shell.GetTabBarIsVisible(Page) returns true, the tab bar is shown. If it returns false, only then is the parent ShellItem checked, ensuring the correct visibility behavior.
Issue Fixed:
Fixes #17390
Tested the behaviour in the following platforms
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac
###Output Video
| Before Issue Fix | After Issue Fix |
|---|---|
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
Azure Pipelines successfully started running 3 pipeline(s).
I removed the change inside
ShellPageRendererTrackerand the test still passes.Maybe this is already fixed? or the does the text need to be adjusted?
Yes @PureWeen , The issue is no longer reproduced in the recent source, as it has been resolved in #25700 PR , Hence closing the PR.