Merge pull request #1406 from abcdeiko/actionmenu_clear_fix

Fix clearItemsMethod at ActionBarMenu
This commit is contained in:
DrKLO 2016-04-25 11:39:13 +03:00
commit fe9e23eccf

View file

@ -112,8 +112,8 @@ public class ActionBarMenu extends LinearLayout {
} }
public void clearItems() { public void clearItems() {
for (int a = 0; a < getChildCount(); a++) { while(getChildCount() > 0) {
View view = getChildAt(a); View view = getChildAt(0);
removeView(view); removeView(view);
} }
} }