Skip to content

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

@Croppo

Description

@Croppo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions