Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
setStepNum null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziedda committed Oct 10, 2016
1 parent e0a9c69 commit ce86d47
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -72,7 +72,11 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
public VerticalStepView setStepViewTexts(List<String> texts)
{
mTexts = texts;
mStepsViewIndicator.setStepNum(mTexts.size());
if(texts != null){
mStepsViewIndicator.setStepNum(mTexts.size());
}else{
mStepsViewIndicator.setStepNum(0);
}
return this;
}

Expand Down

0 comments on commit ce86d47

Please sign in to comment.