Skip to content

Commit

Permalink
* [android] Fix setComponentUsing
Browse files Browse the repository at this point in the history
  • Loading branch information
miomin authored and YorkShen committed Aug 1, 2018
1 parent 2864fdf commit 740d396
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public void onViewAttachedToWindow(T holder) {
}
}

@Override
public void onViewDetachedFromWindow(T holder) {
super.onViewDetachedFromWindow(holder);
if (holder != null)
holder.setComponentUsing(false);
}

@Override
public void onBindViewHolder(T viewHolder, int i) {
if (iRecyclerAdapterListener != null) {
Expand Down

0 comments on commit 740d396

Please sign in to comment.