balysv / material-ripple

Android L Ripple effect wrapper for Views
Apache License 2.0
2.36k stars 478 forks source link

Mechanism to avoid duplicate clicks #50

Open ngheungyu opened 9 years ago

ngheungyu commented 9 years ago

Hi

I noticed if i double clicked very fast (click before the ripple effect is finished).... 2 onclick events will be fired and two of my fragments will be pushed

I appreciate it if you can add some ways to prevent another onclick while ripple effect is running.

Thanks

ayz4sci commented 9 years ago

In the meantime, why don't you do something in your code to handle that. Maybe a check, so that it doesn't get opened twice.

amspayam commented 8 years ago

I use this library in my projects and it's great but it has this problem and it is a bothering issue Please fix it