Skip to content

Commit

Permalink
Fixed bug related with issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmn committed May 5, 2017
1 parent 1d85b59 commit 2b8cc9d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public int compare(ChipInterface o1, ChipInterface o2) {
return mCollator.compare(o1.getLabel(), o2.getLabel());
}
};
// remove chips that do not have label
int count = 0;
for(ChipInterface chipInterface: chipList) {
if(chipInterface.getLabel() == null)
chipList.remove(count);
count++;
}
sortList(chipList);
mOriginalList.addAll(chipList);
mChipList.addAll(chipList);
Expand Down

0 comments on commit 2b8cc9d

Please sign in to comment.