brianchance / MvvmCross-UserInteraction

MvvmCross plugin for interacting with the user from a view model
MIT License
43 stars 44 forks source link

ConfirmAsync blocks if dismissed by clicking outside it. #28

Open trampster opened 7 years ago

trampster commented 7 years ago

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 commented 7 years ago

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