Good afternoon, I'm programming a spinner
that comes with a flag that I have. if the user makes a gesture or a click on the screen, I get a progressDialog
.
My question is how do I cancel the second click so that I do not do the event to which I gave click and deal with the
getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
but with this the second click showing the progressdialiog
would no longer work.
I am trying to know how to eliminate the stack of events that are scheduled in case the second action is activated. To capture the event I am using dispatchTouchEvent
thank you very much