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

ConfirmAsync blocks if dismissed by clicking outside it. #28

Open
trampster opened this issue Dec 5, 2016 · 1 comment
Open

ConfirmAsync blocks if dismissed by clicking outside it. #28

trampster opened this issue Dec 5, 2016 · 1 comment

Comments

@trampster
Copy link

trampster commented Dec 5, 2016

ConfirmAsync blocks indefinitely on android if dialog dismissed by clicking outside it.

This is because the task result is only set if the positive or negative buttons are clicked, if the user dismisses the dialog by clicking outside it then the async call will never complete.

@brianchance
Copy link
Owner

Based on the docs, I am guessing setCancelable(false) or hook up a setOnCancelListener to return the same as the negative button.

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

2 participants