Skip to content

Commit

Permalink
Moved tab resource check to init method
Browse files Browse the repository at this point in the history
  • Loading branch information
amenon committed Sep 23, 2016
1 parent a96f3f6 commit 8de5579
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ public BottomBar(Context context) {
public BottomBar(Context context, AttributeSet attrs) {
super(context, attrs);
init(context, attrs);
if (tabXmlResource != 0) {
setItems(tabXmlResource);
}
}

private void init(Context context, AttributeSet attrs) {
populateAttributes(context, attrs);
initializeViews();
determineInitialBackgroundColor();
if (tabXmlResource != 0) {
setItems(tabXmlResource);
}
}

private void populateAttributes(Context context, AttributeSet attrs) {
Expand Down

0 comments on commit 8de5579

Please sign in to comment.