Debouncing button clicks using Rx
问题 I'm trying to make a simple "button debouncer" which will count filtered clicks and display it thru a TextView. I want to filter rapid/spam clicks in a way that clicks with less than 300ms time-gap in-between are ignored. I did my research and stumbled upon Rx 's awesome debounce() which in theory should do the exact thing I wanted.. ..or so I thought. As the app seemed to only register the first click; the counter won't increment no matter how long I tried to wait. Here's a piece of my code: