mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Fix clearItemsMethod: now it clears all items
This commit is contained in:
parent
a7513b3ba1
commit
58a645b6ed
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue