Skip to content

[BUG] Popup V2 - Android - ShowPopupAsync Task never completes on System Back (Button) #2717

@crwsolutions

Description

@crwsolutions

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When I call ShowPopupAsync and then press the system Back button to dismiss the popup, the popup closes, but the task returned by ShowPopupAsync never completes. As a result, the awaited result is never available.

Expected Behavior

I expect the task to complete when the popup is dismissed, including when it's closed via the system Back button.

Steps To Reproduce

  • Derive a popup from Popup<bool?>.
  • Call OpenPopupAsync() to show it.
  • Press the Android system Back button to close the popup.
  • Observe that await OpenPopupAsync() never returns.

Link to public reproduction project repository

Environment

- .NET MAUI CommunityToolkit: 12.0.0
- OS: Android
- .NET MAUI: 9.0.71

Anything else?

As requested @TheCodeTraveler

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions