Skip to content

Commit

Permalink
optimize SelectableHelper
Browse files Browse the repository at this point in the history
Disable RecyclerView item view cache
  • Loading branch information
jrfeng committed Oct 29, 2020
1 parent d7eb1b9 commit aee834e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public void attachToRecyclerView(@NonNull RecyclerView recyclerView) {
NonNullHelper.requireNonNull(recyclerView);

mRecyclerView = recyclerView;
mRecyclerView.setItemViewCacheSize(0);
registerAdapterDataObserver();
}

Expand Down

0 comments on commit aee834e

Please sign in to comment.