mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
Merge pull request #1406 from abcdeiko/actionmenu_clear_fix
Fix clearItemsMethod at ActionBarMenu
This commit is contained in:
commit
fe9e23eccf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue