Skip to content

The commands attached to gestures in Android MAUI project will not run from MainThread #44

@dalux-era

Description

@dalux-era

Hi,

It seems that when using an MR layout in MAUI Android app, when we attach a command to a gesture, the handler is called outside of Main thread. iOS works as expected. A simple test can be done in the sample project. In CustomEventArgsViewModel.cs add a thread check in OnDown method

        if (MainThread.IsMainThread)
        {
	        /// Handling the Action in main thread
        }
	AddText(DownUpInfo("Down", e));

Can we get more information on whether it is a know issue?

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