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

Commit

Permalink
Merge pull request #26 from kaiwinter/issue-25
Browse files Browse the repository at this point in the history
Check whether skip or done button must be shown initially
  • Loading branch information
riggaroo authored Jan 3, 2018
2 parents 493d25a + 42b0517 commit a64464a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public void loadViewPagerFragments(List<TutorialItem> tutorialItems) {
fragments.add(helpTutorialImageFragment);
}
tutorialView.setViewPagerFragments(fragments);

if (tutorialItems.size() == 1) {
tutorialView.showDoneButton();
} else {
tutorialView.showSkipButton();
}
}

@Override
Expand Down

0 comments on commit a64464a

Please sign in to comment.