A button on our screen causes an activity to be shown that has a "dialog" theme. We are having an issue were if you click the button quickly twice in a row, the dialog activity is opened twice.
Typically I would expect that when a new activity is started, the underlying activity is immediately stopped, and thus accepts no further input.
However, since the dialog themed activity does not take over the whole screen, I think the underlying activity is only paused, not stopped and thus the buttons are still accessible.
Which brings me to my question... Is there a way to force the dialog themed activity into a modal state where the user can't click the buttons on the activity below?
I could probably manually accomplish this by disabling everything in onPause, and reenabling it in onResume, but this seems like a lot of work! Anyone have an easier solution?