use of org.liberty.android.fantastischmemo.dao.CardDao in project AnyMemo by helloworld1.
the class CardWrapperListLoader method dbLoadInBackground.
@Override
protected List<CardWrapper> dbLoadInBackground() {
CardDao cardDao = dbOpenHelper.getCardDao();
List<CardWrapper> cardWrappers = new ArrayList<CardWrapper>((int) cardDao.countOf());
for (Card card : cardDao.getAllCards(null)) {
cardWrappers.add(new CardWrapper(card, initialAnswerVisible));
}
return cardWrappers;
}
Aggregations