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

Tabs on TabbedPage gone after popping Modal in background #22444

Open
VoldersS opened this issue May 16, 2024 · 2 comments
Open

Tabs on TabbedPage gone after popping Modal in background #22444

VoldersS opened this issue May 16, 2024 · 2 comments
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

Comments

@VoldersS
Copy link

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

  1. Create a MAUI project with a TabbedPage as MainPage and 2 Tabs

  2. Push a third Page from one of the tab pages
    await Navigation.PushModalAsync(new ModalPage());

  3. Pop the modal on button click in the modal

await Task.Delay(2500);
await Navigation.PopModalAsync();

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

@VoldersS VoldersS added the t/bug Something isn't working label May 16, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@VoldersS VoldersS changed the title Tabs on TabbedPage gone after navigating in background Tabs on TabbedPage gone after popping Modal in background May 16, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels May 16, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with Visual Studio 17.10 Preview 7(8.0.3&8.0.14&8.0.20&8.0.40). Can repro on Android platform with sample project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants