Categories
BLOG

double recycler

How to prevent Recycler view item from executing the same task twice

I have implemented an Recycler view with its item click inside the Holder class. Each item click opens a new activity. The problem is when user clicks an item twice in a fast tap (very quickly very less span of time), it opens the activity twice.

I can’t try below solution:

  1. android:launchMode=”singleInstance” as I am using startActivityForResult() to call the new activity.
  2. android:launchMode=”singleTask” is also not working.

How can it be stopped from happening? Please suggest.

How to prevent Recycler view item from executing the same task twice I have implemented an Recycler view with its item click inside the Holder class. Each item click opens a new activity. The ]]>