Skip to content

Commit

Permalink
Update IntroActivity.java
Browse files Browse the repository at this point in the history
Possible fix for janheinrichmerker#103 (untested)
  • Loading branch information
TheDorkKnightRises authored Aug 9, 2016
1 parent e043797 commit 1e2b507
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e2b507

Please sign in to comment.