Skip to content

prevent tabs from being removed during Disappearing #30290

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pictos
Copy link
Contributor

@pictos pictos commented Jun 28, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

During modal navigation, on android, the tabs are removed from layout, the reason is lost in time and this PR is to see if something break and if doesn't remove this behavior and make it better aligned with iOS.

Issues Fixed

Fixes CommunityToolkit/Maui#2708

@Copilot Copilot AI review requested due to automatic review settings June 28, 2025 01:20
@pictos pictos requested a review from a team as a code owner June 28, 2025 01:20
@pictos pictos requested review from rmarinho and jsuarezruiz June 28, 2025 01:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR stops removing tab views during Android modal navigation by unhooking the disappearing event handler and deleting the associated method, making Android behavior align with iOS.

  • Remove OnTabbedPageDisappearing subscription in SetElement
  • Delete OnTabbedPageDisappearing method
  • Prevent tabs from being removed on page disappearance
Comments suppressed due to low confidence (2)

src/Controls/src/Core/Platform/Android/TabbedPageManager.cs:124

  • Add automated tests in TestCases.Shared.Tests and TestCases.HostApp to verify that tabs are not removed when a TabbedPage disappears on Android. Ensure each UI element has a unique AutomationId so the tests reliably locate the correct tabs.
				Element.Appearing -= OnTabbedPageAppearing;

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 28, 2025
Copy link
Contributor

Hey there @@pictos! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Popup v2 - TabbedPage navigation bar disappear when showing a Popup
2 participants