aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Hubert <aurel.hubert@gmail.com>2016-03-25 09:58:59 +0100
committerAurelien Hubert <aurel.hubert@gmail.com>2016-03-25 09:58:59 +0100
commitee1a23bf7316a3d966e9552159ddce0f9284cf8f (patch)
treeb756bcc50657068110ca593e432e86a6da606c5a
parent85c437c09e0a37d77398197fd1aa49316b176533 (diff)
parenteea145b4375bc3b0b05732d1577ca7eb095cc085 (diff)
downloadandroid_external_ahbottomnavigation-ee1a23bf7316a3d966e9552159ddce0f9284cf8f.tar.gz
android_external_ahbottomnavigation-ee1a23bf7316a3d966e9552159ddce0f9284cf8f.tar.bz2
android_external_ahbottomnavigation-ee1a23bf7316a3d966e9552159ddce0f9284cf8f.zip
Merge pull request #16 from alan-rodriguez/add-list
Allow AHBottomNavigation.addItems() to take List as parameter
-rw-r--r--ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
index f1e6186..c65d307 100644
--- a/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
+++ b/ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java
@@ -21,6 +21,7 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
+import java.util.List;
/**
* AHBottomNavigationLayout
@@ -549,7 +550,7 @@ public class AHBottomNavigation extends FrameLayout {
/**
* Add all items
*/
- public void addItems(ArrayList<AHBottomNavigationItem> items) {
+ public void addItems(List<AHBottomNavigationItem> 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");
}