forked from github/wulkanowy-mirror
fix: bad attendance always visible
This commit is contained in:
parent
43a01e4e04
commit
6e751c83f6
@ -56,7 +56,9 @@ class AttendanceRepository @Inject constructor(
|
|||||||
it.isEmpty() || forceRefresh || isExpired
|
it.isEmpty() || forceRefresh || isExpired
|
||||||
},
|
},
|
||||||
query = {
|
query = {
|
||||||
val badAttendanceHidden = false
|
val badAttendanceHidden = preferencesRepository
|
||||||
|
.selectedHiddenSettingTiles
|
||||||
|
.contains(DashboardItem.HiddenSettingTile.NOTES)
|
||||||
|
|
||||||
if (badAttendanceHidden) {
|
if (badAttendanceHidden) {
|
||||||
attendanceDb.loadAllCensored(
|
attendanceDb.loadAllCensored(
|
||||||
@ -75,7 +77,9 @@ class AttendanceRepository @Inject constructor(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetch = {
|
fetch = {
|
||||||
val badAttendanceHidden = false
|
val badAttendanceHidden = preferencesRepository
|
||||||
|
.selectedHiddenSettingTiles
|
||||||
|
.contains(DashboardItem.HiddenSettingTile.NOTES)
|
||||||
|
|
||||||
val lessons = withContext(Dispatchers.IO) {
|
val lessons = withContext(Dispatchers.IO) {
|
||||||
timetableDb.load(
|
timetableDb.load(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user