Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI is not blocking controls #16

Closed
andreptcosta opened this issue Mar 18, 2024 · 5 comments
Closed

UI is not blocking controls #16

andreptcosta opened this issue Mar 18, 2024 · 5 comments
Assignees

Comments

@andreptcosta
Copy link
Contributor

andreptcosta commented Mar 18, 2024

Describe the bug
I'm noticing that when the dialog Loading is open, I can still touch the controls behind, causing some bugs in my app. Is there any way to lock the UI while user dialog is being displayed?

To Reproduce
Steps to reproduce the behavior:

  1. Launch UserDialogs.Instance.ShowLoading(message, MaskType.Black);
  2. Try click on controls from page
  3. Page controls are accessible, where they should be blocked by the user dialog UI

Did you run Sample project from this repo, is there the same?
yes, the result is the same.

Smartphone (please complete the following information):

  • Device: any
  • OS: Android

Did you found a workaround?
Not

@Alex-Dobrynin
Copy link
Owner

Thanks. Yes, can confirm this. But, unfortunately, I don't have enough time to fix this, and will do when I have time. If this is urgent for you, you may create a PR with the fix, or wait until I do this.

@andreptcosta
Copy link
Contributor Author

@Alex-Dobrynin I got it the problem and fix. Can I create a pull request? Can you grant me permission to create a branch?

@Alex-Dobrynin
Copy link
Owner

Alex-Dobrynin commented Mar 20, 2024

I got it the problem and fix. Can I create a pull request? Can you grant me permission to create a branch?

just fork this repo, do the fix in your fork, and the create a pr into this repo master branch

andreptcosta added a commit to andreptcosta/Controls.UserDialogs.Maui that referenced this issue Mar 20, 2024
The code `dialog.Window.AddFlags(WindowManagerFlags.NotFocusable);`  It was causing AndHUD to not lock the other controls as a modal.
Alex-Dobrynin added a commit that referenced this issue Mar 20, 2024
Fix UI is not blocking controls on Android #16
@kberawala
Copy link

is this launched ?

@Alex-Dobrynin
Copy link
Owner

@kberawala what do you mean by launched?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants