Adapt message when all habits are completed

Closes #700.
This commit is contained in:
Quentin Hibon
2021-02-09 23:35:13 +01:00
committed by Alinson S. Xavier
parent 8e1aa3d01e
commit 50ebff3edf
6 changed files with 54 additions and 16 deletions

View File

@@ -73,6 +73,11 @@ class HabitCardListCache @Inject constructor(
return data.checkmarks[habitId]!!
}
@Synchronized
fun hasNoHabit(): Boolean {
return allHabits.isEmpty
}
/**
* Returns the habits that occupies a certain position on the list.
*