1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-06-30 22:22:57 +00:00

Fix clearItemsMethod: now it clears all items

This commit is contained in:
Yuriy Kolbasinskiy 2016-04-14 11:56:23 +07:00
parent a7513b3ba1
commit 58a645b6ed

View File

@ -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);
}
}