Skip to content

#14 Fixed no slides library crash#18

Merged
radzio merged 2 commits intorelease/0.0.4from
feature/no_slide_bug
Oct 12, 2016
Merged

#14 Fixed no slides library crash#18
radzio merged 2 commits intorelease/0.0.4from
feature/no_slide_bug

Conversation

@bezmian
Copy link
Contributor

@bezmian bezmian commented Oct 5, 2016

  • Fixed InkPageIndicator nullPointException
  • Secured material intro activity when no slides

 * Secured material intro activity when no slides
int currentItem = viewPager.getCurrentItem();
messageButtonBehaviourOnPageSelected.pageSelected(currentItem);
nextButtonBehaviour(currentItem, adapter.getItem(currentItem));
if (adapter.getCalculatedCount() == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this method name. Can you think of something better?

}
}
setJoiningFraction(leftDotPosition, fraction);
if (joiningFractions != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about moving this check inside setJoingiFraction method?

  * Renamed getCalculatedCount to slidesCount in SlidesAdapter
  * Checkstyle
@radzio radzio merged commit e059e69 into release/0.0.4 Oct 12, 2016
@radzio
Copy link
Contributor

radzio commented Oct 12, 2016

LGTM!

@radzio radzio deleted the feature/no_slide_bug branch October 12, 2016 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants