Skip to content

Commit

Permalink
Merge pull request #1406 from abcdeiko/actionmenu_clear_fix
Browse files Browse the repository at this point in the history
Fix clearItemsMethod at ActionBarMenu
  • Loading branch information
DrKLO committed Apr 25, 2016
2 parents 0647377 + 58a645b commit fe9e23e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public void onItemClick(int id) {
}

public void clearItems() {
for (int a = 0; a < getChildCount(); a++) {
View view = getChildAt(a);
while(getChildCount() > 0) {
View view = getChildAt(0);
removeView(view);
}
}
Expand Down

0 comments on commit fe9e23e

Please sign in to comment.