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

Remove view from previous containerview #14867

Merged
merged 4 commits into from
May 8, 2023

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented May 1, 2023

Description of Change

  • Added code to ContainerView on Android, so that we remove the view from the previous ContainerView. This primarily happens if you reuse the same instance of a page for the Window.Page
  • Fixed up the code that sets the Toolbar property on the correct MAUI xplat view. When this code was previously written we didn't have the WindowChanged event to work with so it made the timing tricky when to trigger NavigationPage to remove/add a toolbar. With this new code we are able to add/remove the toolbar in a more logical location.

Issues Fixed

Fixes #14866

@PureWeen PureWeen marked this pull request as ready for review May 2, 2023 17:24
@PureWeen PureWeen marked this pull request as draft May 2, 2023 17:29
@PureWeen PureWeen marked this pull request as ready for review May 2, 2023 20:38
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@PureWeen PureWeen added partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/android 🤖 labels May 3, 2023
@PureWeen PureWeen merged commit cad62a0 into main May 8, 2023
@PureWeen PureWeen deleted the fix_toolbar_disconnect_with_page_reuse branch May 8, 2023 22:53
rmarinho pushed a commit that referenced this pull request May 30, 2023
* Remove view from previous containerview

* - fix shell test to correctly add nav bar

* - fix wiring up to modal pages

* - fix extraction of currentpage
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Swapping the MainPage out with the same instance of FlyoutPage crashes the app
4 participants