Hello. In my android app I often use an Alert Dialog to receive feedback from user (ask for an input or require a confirmation). The function responsible for generating and showing the dialog, often returns a boolean as an indicator that the action took place (for example, a confirmation of deletion of an item, which returns true if user agreed or false if canceled the operation). I tend to use the value returned by this functions, in order to determine what to do next in the flow of my app. What I get is that after the dialog closes, it doesn't follow as expected (for example, delete the item or refresh some value). It isn't until the next time I try to do the same action, that the action does what it was expected to do.