boolean doubleClick = false;
At the click:
if(!doubleClick){ doubleClick = true; } else{ // Ваши действия doubleClick = false; }
on svaypah and other tangencies that are not related to a click, just hang doubleClick = false;
You can add a timer to set the flag to false if necessary. But the latter is no longer necessary, especially for the handler on one particular control.
Although, in your case, it is with the timer that the solution will turn out. If, let's say, once a second, check the status of the flag “there was a click” and the flag “there was a double tap” and call the appropriate actions.
Or start the timer at the first click and stop it if the desired condition is not met - until the next event.