Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from altaf933/master
Browse files Browse the repository at this point in the history
IllegalException Invalid step value error when keeping last page as finishing page.
  • Loading branch information
badoualy authored Jun 16, 2016
2 parents 9856f2b + c88ebb8 commit c84ab10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public int getCurrentStep() {
*/
@UiThread
public void setCurrentStep(int currentStep) {
if (currentStep < 0 || currentStep >= stepCount)
if (currentStep < 0 || currentStep > stepCount)
throw new IllegalArgumentException("Invalid step value " + currentStep);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
Expand Down

0 comments on commit c84ab10

Please sign in to comment.