A button on the screen displays an activity that has a dialogue topic. We have a problem: if you double-click the button twice, the dialog operation opens twice.
Normally, I would expect that when a new action starts, the main action will stop immediately and thus will not accept any additional input.
However, since the interactive activity does not affect the entire screen, I think that the main action is paused rather than stopped, and thus the buttons are still available.
Which brings me to my question ... Is there a way to force the thematic activity of the dialog box to be activated in a modal state when the user cannot click the buttons in the operation below?
Perhaps I could do this manually by disabling everything in onPause and re-enabling it in onResume, but that seems like a lot of work! Does anyone have an easier solution?
source
share