Skip to content

Avoid async main queue again when showing a popup #388

Open
@traitanhong98

Description

@traitanhong98

Hi team, currently, I'm having an issue with your lib. When my application got an error and multiple popup with same content showing at same time. The isCurrentlyDisplaying will not working properly because when I call display, it'll async back to mainThread later and the next time I check the Displaying will always return false.

What I'm trying to do is set the name to the popup, if that popup is showing, the same one will not be able to shown.

Ex:

Screenshot 2024-02-21 at 15 23 33

The condition will not trigger because it show after async back to mainThread

My suggestion is to not async when you show the popup if we was already in main thread:

Screenshot 2024-02-21 at 14 29 54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions