Commit fe9e23ec authored by DrKLO's avatar DrKLO

Merge pull request #1406 from abcdeiko/actionmenu_clear_fix

Fix clearItemsMethod at ActionBarMenu 
parents 06473773 58a645b6
...@@ -112,8 +112,8 @@ public class ActionBarMenu extends LinearLayout { ...@@ -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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment