In the application, when you click on the button, a pop-up message is displayed.
Toast toast = Toast.makeText(getApplicationContext(), "Число уже дробное", Toast.LENGTH_SHORT); toast.show(); How to prohibit the display of this message when a similar message is already open (if it goes out, the display is allowed again)? Otherwise, if you press it ten times quickly, it will be displayed 10 times one after the other.