Commit fa62df3b authored by kenan's avatar kenan

Fix search

parent 05d24db3
......@@ -128,7 +128,10 @@ public class CardLoader implements ICardSearcher {
SparseArray<Card> cards = mCardManager.getAllCards();
List<Card> list = new ArrayList<>();
for (int i = 0; i < cards.size(); i++) {
list.add(cards.valueAt(i));
Card card = cards.valueAt(i);
if (searchInfo == null || searchInfo.check(card)) {
list.add(card);
}
}
Collections.sort(list, CardSort.ASC);
return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment