Skip to content

Commit

Permalink
Fixes #103
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Aug 31, 2016
1 parent 69c7cf1 commit 6b09a88
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ private void performButtonBackPress() {
}

private boolean canGoForward(int position, boolean notifyListeners) {
if (position >= getCount())
return false;

if (buttonNextFunction == BUTTON_NEXT_FUNCTION_NEXT && position >= getCount() - 1)
//Block finishing when button "next" function is not "finish".
return false;
Expand All @@ -443,6 +446,9 @@ private boolean canGoForward(int position, boolean notifyListeners) {
}

private boolean canGoBackward(int position, boolean notifyListeners) {
if (position <= 0)
return false;

boolean canGoBackward = (navigationPolicy == null || navigationPolicy.canGoBackward(position)) &&
getSlide(position).canGoBackward();
if (!canGoBackward && notifyListeners) {
Expand Down

0 comments on commit 6b09a88

Please sign in to comment.