fix: bad attendance always visible

This commit is contained in:
sadorowo 2024-01-03 20:23:12 +01:00
parent 43a01e4e04
commit 6e751c83f6
2 changed files with 6 additions and 2 deletions

0
Icon Normal file
View File

View File

@ -56,7 +56,9 @@ class AttendanceRepository @Inject constructor(
it.isEmpty() || forceRefresh || isExpired
},
query = {
val badAttendanceHidden = false
val badAttendanceHidden = preferencesRepository
.selectedHiddenSettingTiles
.contains(DashboardItem.HiddenSettingTile.NOTES)
if (badAttendanceHidden) {
attendanceDb.loadAllCensored(
@ -75,7 +77,9 @@ class AttendanceRepository @Inject constructor(
}
},
fetch = {
val badAttendanceHidden = false
val badAttendanceHidden = preferencesRepository
.selectedHiddenSettingTiles
.contains(DashboardItem.HiddenSettingTile.NOTES)
val lessons = withContext(Dispatchers.IO) {
timetableDb.load(