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

Fix page swap from background #19532

Merged
merged 4 commits into from Feb 27, 2024
Merged

Fix page swap from background #19532

merged 4 commits into from Feb 27, 2024

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Dec 20, 2023

Description of Change

With MAUI we stopped committing fragments with state loss. This makes it so you can't make fragment changes when the app is backgrounded. This PR injects some lifecycle logic into every part of our application where we are interacting with fragments and adds code that will wait until the resume has finished before processing the fragment changes.

Issues Fixed

Fixes #11501

@samhouts samhouts added the stale Indicates a stale issue/pr and will be closed soon label Jan 8, 2024
@pulmuone
Copy link

When will this branch be reflected?
"androidx.fragment.app.FragmentManager.checkStateLoss"
Because of this error, we rolled back from Maui back to Xamarin.

@samhouts samhouts added the area/navigation 🧭 NavigationPage label Jan 25, 2024
@samhouts samhouts removed the stale Indicates a stale issue/pr and will be closed soon label Feb 6, 2024
@PureWeen PureWeen force-pushed the fix_page_swap_from_background branch 2 times, most recently from 7f078f9 to c7f771c Compare February 20, 2024 17:32
@PureWeen PureWeen marked this pull request as ready for review February 20, 2024 17:34
@PureWeen PureWeen requested a review from a team as a code owner February 20, 2024 17:34
@PureWeen PureWeen force-pushed the fix_page_swap_from_background branch from c21115f to ceb9fbc Compare February 21, 2024 23:52
@jfversluis jfversluis merged commit 8c89f5e into main Feb 27, 2024
47 checks passed
@jfversluis jfversluis deleted the fix_page_swap_from_background branch February 27, 2024 10:24
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java.Lang.IllegalStateException after MainPage swap
4 participants