Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
avoid IllegalArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Nov 10, 2023
1 parent c8122aa commit 4cf734c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newStat
private Rect tmpRect=new Rect();
@Override
public void getSelectorBounds(View view, Rect outRect){
boolean hasDescendant = false, hasAncestor = false, isWarning = false;
int lastIndex = -1, firstIndex = -1;
if(list!=view.getParent()) return;
boolean hasDescendant=false, hasAncestor=false, isWarning=false;
int lastIndex=-1, firstIndex=-1;
if(((UsableRecyclerView) list).isIncludeMarginsInItemHitbox()){
list.getDecoratedBoundsWithMargins(view, outRect);
}else{
Expand Down

0 comments on commit 4cf734c

Please sign in to comment.