Tabs on TabbedPage gone after popping Modal in background #22444
Labels
area-controls-tabbedpage
TabbedPage
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Seen on Android:
When popping a Modal that's displayed over a TabbedPage and sending the app to the background, when resuming the app the tabs are gone.
I've simulated some task before popping the modal. If you send the app to the background during this 2.5s, and resume it when the Modal is actually popped, the tabs on the TabbedPage are no longer displayed.
Summary: navigating in the background results in invisible tabs on TabbedPage
Steps to Reproduce
Create a MAUI project with a TabbedPage as MainPage and 2 Tabs
Push a third Page from one of the tab pages
await Navigation.PushModalAsync(new ModalPage());
Pop the modal on button click in the modal
When backgrounding the app during that 2500 ms Task, and resuming it after, the tabs on the TabbedPage are no longer visible.
Actual result: Tabs are gone
Bad.mp4
Expected result: Tabs are still visible
This is the current behaviour when using a Shell TabBar instead of the TabbedPage
Good.mp4
Link to public reproduction project repository
https://github.com/VoldersS/TabbedPageBug
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
Works correctly using Shell, but since it's not supported while also using NavigationPages it's not really a workaround if you need NavigationPages.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: