Skip to content

Commit b2803a5

Browse files
author
josefhruska
committed
Fix crash
1 parent 3ffe98f commit b2803a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

viewpageranimator/src/main/java/com/stylingandroid/viewpageranimator/ViewPagerAnimator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private void endAnimation(int position) {
124124

125125
private void beginAnimation(int position) {
126126
PagerAdapter adapter = viewPager.getAdapter();
127-
if (position == currentPage && position + 1 <= adapter.getCount()) {
127+
if (position == currentPage && position + 1 < adapter.getCount()) {
128128
targetPage = position + 1;
129129
startValue = provider.get(position);
130130
endValue = provider.get(targetPage);

0 commit comments

Comments
 (0)