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

[Android] Modal Animation Repeats When Returning from Background #28492

Open
Croppo opened this issue Mar 19, 2025 · 2 comments · May be fixed by #28522 or #28538
Open

[Android] Modal Animation Repeats When Returning from Background #28492

Croppo opened this issue Mar 19, 2025 · 2 comments · May be fixed by #28522 or #28538
Labels
area-controls-modal i/regression This issue described a confirmed regression on a currently supported version platform/android 🤖 regressed-in-9.0.0 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Croppo
Copy link

Croppo commented Mar 19, 2025

Description

In my app, when a modal is open and the application is backgrounded, the app behaves as expected by showing the same modal upon return. However, Android re-triggers the display animation of the modal, causing a flickering effect. This results in the appearance that the initial modal is being overlaid by the same modal again. The flickering is resolved when I disable animations entirely, but this is not an ideal solution, as I still want the animation to be present when the modal is initially loaded.

I've recreated this issue in the attached repository.

Steps to Reproduce

  1. Open the app in the repository.
  2. On the Issues screen, tap the button to open the modal.
  3. With the modal open, background the app.
  4. After returning to the app, you'll observe the duplicated visual animation.

Link to public reproduction project repository

https://github.com/Croppo/MauiReproductionApp

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.40 SR5

Affected platforms

Android

Affected platform versions

Galaxy S23 Ultra, Galaxy Tab A8

Did you find any workaround?

No response

Relevant log output

@Croppo Croppo added the t/bug Something isn't working label Mar 19, 2025
@Croppo Croppo changed the title [Android] Modal re-animates when returning to the app on top of existing modal [Android] Modal Animation Repeats When Returning from Background Mar 19, 2025
@devanathan-vaithiyanathan devanathan-vaithiyanathan added area-controls-modal s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version labels Mar 19, 2025
@devanathan-vaithiyanathan
Copy link
Contributor

devanathan-vaithiyanathan commented Mar 19, 2025

This issue has been verified using VS code(1.98.1) with MAUI version 9.0.50. It can be reproduced on Android platform. On 8.0.40 works fine

ModalAnimation.mov

@devanathan-vaithiyanathan
Copy link
Contributor

Confirms that the regression started from 9.0.0-preview.7.24407.4 itself.

@PureWeen PureWeen moved this from Todo to In Progress in MAUI SDK Ongoing Mar 23, 2025
@PureWeen PureWeen modified the milestones: .NET 9 SR6, .NET 9 SR7 Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-modal i/regression This issue described a confirmed regression on a currently supported version platform/android 🤖 regressed-in-9.0.0 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: In Progress
5 participants