Commit 58a645b6 authored by Yuriy Kolbasinskiy's avatar Yuriy Kolbasinskiy

Fix clearItemsMethod: now it clears all items

parent a7513b3b
......@@ -112,8 +112,8 @@ public class ActionBarMenu extends LinearLayout {
}
public void clearItems() {
for (int a = 0; a < getChildCount(); a++) {
View view = getChildAt(a);
while(getChildCount() > 0) {
View view = getChildAt(0);
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