Skip to content

Commit

Permalink
[Fix] Fix FixItemDecorationRecyclerView.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Apr 27, 2020
1 parent 82aa98e commit 173ea1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public FixItemDecorationRecyclerView(@NonNull Context context, @Nullable Attribu
@Override
protected void dispatchDraw(@NonNull Canvas canvas) {
for (int i = 0, count = getItemDecorationCount(); i < count; ++i) {
FixItemDecoration decor = (FixItemDecoration) getItemDecorationAt(i);
FixItemDecoration decor = (FixItemDecoration) super.getItemDecorationAt(i);
decor.getItemDecoration().onDraw(canvas, this, decor.getState());
}
super.dispatchDraw(canvas);
for (int i = 0, count = getItemDecorationCount(); i < count; ++i) {
FixItemDecoration decor = (FixItemDecoration) getItemDecorationAt(i);
FixItemDecoration decor = (FixItemDecoration) super.getItemDecorationAt(i);
decor.getItemDecoration().onDrawOver(canvas, this, decor.getState());
}
}
Expand Down

0 comments on commit 173ea1c

Please sign in to comment.