Skip to content

[BUG] Popup V2 - Android - ShowPopupAsync(INavigation) returns a Task that never completes #2703

@mfeingol

Description

@mfeingol

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 call CloseAsync() from inside my popup, the popup closes but ShowPopupAsync's task never completes so the result is never available.

Expected Behavior

I expect the task to complete when I close the popup.

Steps To Reproduce

  1. Derive a popup from Popup<bool?>
  2. Call OpenPopupAsync() on it, and close the popup from within using CloseAsync()
  3. Note that await OpenPopupAsync() never returns

Link to public reproduction project repository

https://github.com/mfeingol/repros/tree/master/CommunityToolkit_2703_repro

Environment

- .NET MAUI CommunityToolkit: 12.0.0
- OS: Windows 11
- .NET MAUI: 9.0.71

Anything else?

No response

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