I have a button that displays an alert dialog. However if I click button two times, I see two alerts on top of each other. Is there a way to check if there is already an alert being shown and pop it before we show it again. I just want to be able to show only one alert however times user clicks that button.
Thanks