@@ -19,7 +19,7 @@ public class BottomTabsContainer extends RelativeLayout implements BottomTabs.Bo
}
public void addTabContent(String label, View tabContent) {
- if (tabsContent.size() > 5) {
+ if (tabsContent.size() == 5) {
throw new TooManyTabsException();
bottomTabs.add(label);