forked from airbnb/epoxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block item click callback during item layout.
Adding a RecyclerView.NO_POSITION != viewHolder.getAdapterPosition() check inside of the click listener wrapper ensures we do not call the click listener when the item is going through a layout. There was a need to make a change to the ControllerLifecycleHelper to ensure that click still passed as the adapter was always supplying `NO_POSITION` for unit tests. The simplest way to get the basic functionality was to spy the viewHolder, and stub this method. ISSUE airbnb#293
- Loading branch information
Showing
2 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters