In my Android application, to ask the user if he wants to resume the current game, I show the dialog “Do you want to resume the current game? Yes - No” in the main game.
The fact is that if I resume various actions without responding to the dialogue, I get several dialogues on top of each other, which is clearly not my goal.
I could easily avoid this behavior with Boolean var, but I was wondering if the Dialog class had some kind of option that prevents duplication or something like that.
source
share