aboutsummaryrefslogtreecommitdiffstats
path: root/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation
diff options
context:
space:
mode:
authorAurelien Hubert <aurel.hubert@gmail.com>2016-03-28 20:11:57 +0200
committerAurelien Hubert <aurel.hubert@gmail.com>2016-03-28 20:11:57 +0200
commit5b30f66f9346bba93acec99d17c7a87ef8cf9a47 (patch)
tree3e4ba04ba6300a8b0ed532606c5e73fcf6eb4a08 /ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation
parent3f0423373f85e34643d0eb1aa76d926ee408a22e (diff)
downloadandroid_external_ahbottomnavigation-5b30f66f9346bba93acec99d17c7a87ef8cf9a47.tar.gz
android_external_ahbottomnavigation-5b30f66f9346bba93acec99d17c7a87ef8cf9a47.tar.bz2
android_external_ahbottomnavigation-5b30f66f9346bba93acec99d17c7a87ef8cf9a47.zip
Fixed warning check
Diffstat (limited to 'ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation')
-rw-r--r--ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
index a3fff0d..a03055c 100644
--- a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
+++ b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
@@ -633,7 +633,7 @@ public class AHBottomNavigation extends FrameLayout {
* Add an item
*/
public void addItem(AHBottomNavigationItem item) {
- if (this.items.size() >= MAX_ITEMS) {
+ if (this.items.size() > MAX_ITEMS) {
Log.w(TAG, "The items list should not have more than 5 items");
}
items.add(item);
@@ -644,7 +644,7 @@ public class AHBottomNavigation extends FrameLayout {
* Add all items
*/
public void addItems(List<AHBottomNavigationItem> items) {
- if (items.size() >= MAX_ITEMS || (this.items.size() + items.size()) > MAX_ITEMS) {
+ if (items.size() > MAX_ITEMS || (this.items.size() + items.size()) > MAX_ITEMS) {
Log.w(TAG, "The items list should not have more than 5 items");
}
this.items.addAll(items);