-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Shell Tab is still visible after set Tab.IsVisible to false #24161
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@SuthiYuvaraj anything I can help you with for this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the snapshots are ready
@dotnet-policy-service agree |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -0,0 +1,24 @@ | |||
#if ANDROID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we run this test on iOS and Windows also?
I realize the bug only talks about android but since this code is relevant on all platforms, it's ideal to have a test that runs on all three
Azure Pipelines successfully started running 3 pipeline(s). |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -357,6 +357,10 @@ void GoTo(ShellSection shellSection) | |||
if (shellSection == null || _currentSection == shellSection) | |||
return; | |||
var renderer = RendererForShellContent(shellSection); | |||
|
|||
if (renderer == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time when we can lets use the is null
.
Failing test not related |
Root Cause
When the visibility of the TabItem is changed dynamically, TabBar needs to be updated to reflect the TabBar items count, but hiding the visible TabItem updates the TabContent but doesn't automatically adjust the tab count.
Description of Change
Each time the DisplayedPage is modified,we have updated the TabBar items count through setupmenu().
Issues Fixed
Fixes #8788
Fixes #23717
Fixes #23780
Screenshots
Before:
Recording.2024-08-20.130548.mp4
After:
Recording.2024-08-20.130401.mp4