Preventing rapid clicks with RXJava
I think throttleFirst
is what you want: https://github.com/Netflix/RxJava/wiki/Filtering-Observables#wiki-throttlefirst
For preventing fast clicks i use this code
RxView.clicks(your_view)
.throttleFirst(300, TimeUnit.MILLISECONDS)
.subscribe {
//on click
}