xiaofeng-han / AndroidLibs

GNU General Public License v3.0
183 stars 42 forks source link

Crash on multiTap #12

Closed icodeyou closed 7 years ago

icodeyou commented 7 years ago

Hi,

On the sample app, I tried to tap random elements of the recyclerview as quick as possible, and the app crashes... I have the same happening on my app with your library implemented. To my side, the error is an ArrayIndexOutOfBoundsException. Is there a way to fix this issue ? If not, I guess I'll find another library.

icodeyou commented 7 years ago

I'm sorry, I understood my problem. Inside my adapter, to catch the click event on an item, I had a method setOnClickListener inside my ViewHolder class. I put it in the method onBindViewHolder instead and it worked. I hope it's gonna help some of you.