Skip to content

Commit

Permalink
fix(android): sticky item type calculate using node id
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and siguangli committed Jul 22, 2024
1 parent f4f039d commit 2ff8a19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public int getItemViewType(int position) {
return 0;
}
if (node.shouldSticky()) {
return STICK_ITEM_VIEW_TYPE_BASE - node.getItemViewType();
return STICK_ITEM_VIEW_TYPE_BASE - node.getId();
}
return node.getItemViewType();
}
Expand Down

0 comments on commit 2ff8a19

Please sign in to comment.