How to avoid a Toast if there’s one Toast already being shown
I’ve tried a variety of things to do this. At first I tried using the cancel(), which had no effect for me (see also this answer). With setDuration(n) I wasn’t coming to anywhere either. It turned out by logging getDuration() that it carries a value of 0 (if makeText()‘s parameter was Toast.LENGTH_SHORT) or 1 (if …