Skip to content

Commit

Permalink
Fix clearItemsMethod: now it clears all items
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdeiko committed Apr 14, 2016
1 parent a7513b3 commit 58a645b
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 58a645b

Please sign in to comment.