Android prevent a dialog from closing when a button is clicked

My problem was that when a user clicks the Sign Up for example button I wanted to validate a field if it contains a valid email and after that dismiss or keep the dialog showing.

May 4, 2020 · 1 min · gmirchev90