Convert HabitCardListCache

This commit is contained in:
Quentin Hibon
2021-01-19 22:34:00 +01:00
parent 26fb76f95f
commit e84cc8e8b1
3 changed files with 370 additions and 469 deletions

View File

@@ -121,7 +121,7 @@ class HabitCardListAdapter @Inject constructor(
val score = cache.getScore(habit!!.id!!)
val checkmarks = cache.getCheckmarks(habit.id!!)
val selected = selected.contains(habit)
listView!!.bindCardView(holder, habit, score, checkmarks, selected)
listView!!.bindCardView(holder, habit, score, checkmarks!!, selected)
}
override fun onViewAttachedToWindow(holder: HabitCardViewHolder) {