diff --git a/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java b/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java index 7885c31..c20d348 100644 --- a/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java +++ b/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java @@ -360,7 +360,7 @@ private long calculateScrollDuration(int distance) { public void nextSlide() { int currentItem = pager.getCurrentItem(); - if (currentItem > adapter.getCount() - 1) finishIfNeeded(); + if (currentItem >= adapter.getCount() - 1) finishIfNeeded(); if (canGoForward(currentItem, true)) { smoothScrollPagerTo(++currentItem);