maui icon indicating copy to clipboard operation
maui copied to clipboard

Fix TabBar visibility when navigating back from a non-tabbed page to a tabbed page

Open SuthiYuvaraj opened this issue 1 year ago • 17 comments
trafficstars

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

SuthiYuvaraj avatar Sep 30 '24 11:09 SuthiYuvaraj

/azp run

jfversluis avatar Oct 03 '24 11:10 jfversluis

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 03 '24 11:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 04 '24 07:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 04 '24 07:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 08 '24 13:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 08 '24 13:10 azure-pipelines[bot]

/rebase

jsuarezruiz avatar Oct 09 '24 13:10 jsuarezruiz

/azp run

jsuarezruiz avatar Oct 10 '24 13:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 10 '24 13:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 11 '24 11:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 11 '24 11:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 14 '24 10:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 14 '24 10:10 azure-pipelines[bot]

/azp run

PureWeen avatar Oct 15 '24 16:10 PureWeen

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 15 '24 16:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 25 '24 10:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 25 '24 10:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Nov 04 '24 15:11 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Nov 04 '24 15:11 azure-pipelines[bot]

/rebase

jsuarezruiz avatar Nov 18 '24 12:11 jsuarezruiz

/azp run

jsuarezruiz avatar Nov 20 '24 10:11 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Nov 20 '24 10:11 azure-pipelines[bot]

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Dec 13 '24 10:12 azure-pipelines[bot]

/rebase

jfversluis avatar Dec 16 '24 12:12 jfversluis

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Dec 16 '24 13:12 azure-pipelines[bot]

/rebase

jfversluis avatar Dec 18 '24 10:12 jfversluis

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Dec 18 '24 14:12 azure-pipelines[bot]

I removed the change inside ShellPageRendererTracker and 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.

SuthiYuvaraj avatar Dec 20 '24 10:12 SuthiYuvaraj