Skip to content

Commit a168251

Browse files
committed
Fixed bug
1 parent 81ecb2d commit a168251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omegarecyclerviewlibs/src/main/java/com/omega_r/libs/omegarecyclerview/item_decoration/SpaceItemDecoration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void getItemOffset(@NonNull Rect outRect, @NonNull RecyclerView parent,
2525
if (isShowEndDivider() && position == itemCount - countBeginEndPositions) helper.setEnd(outRect, space);
2626

2727
if (position % countBeginEndPositions != 0 || isShowBeginDivider()) helper.setOtherStart(outRect, space);
28-
if (position / (countBeginEndPositions - 1) > 0 && isShowEndDivider()) helper.setOtherStart(outRect, space);
28+
if (position / (countBeginEndPositions - 1) > 0 && isShowEndDivider()) helper.setOtherEnd(outRect, space);
2929

3030

3131
}

0 commit comments

Comments
 (0)