fix: added null guard

This commit is contained in:
Vasko
2020-03-06 14:35:57 +02:00
parent 1c46d748a0
commit 9d4e482b38

View File

@ -243,6 +243,7 @@ public class BottomNavigationBar extends LinearLayout {
}
private void setImageHeights(){
if (this.mTabItems != null) {
for (TabItemSpec tabItem : this.mTabItems) {
if(tabItem.imageHeight == 0 && tabItem.iconId != 0) {
Drawable drawable = getResources().getDrawable(tabItem.iconId);
@ -253,6 +254,7 @@ public class BottomNavigationBar extends LinearLayout {
}
}
}
}
private void populateTabStrip() {
final OnClickListener tabClickListener = new TabClickListener();