[Timetable] Disable setting metadata for normal type lessons.

This commit is contained in:
Kuba Szczodrzyński 2020-03-10 23:45:40 +01:00
parent cc1b581d7e
commit 8a825227cb

View File

@ -25,6 +25,8 @@ class TimetableManager(val app: App) : CoroutineScope {
fun markAsSeen(lesson: LessonFull) {
lesson.seen = true
if (lesson.type <= Lesson.TYPE_NORMAL)
return
startCoroutineTimer(500L, 0L) {
app.db.metadataDao().setSeen(lesson.profileId, lesson, true)
}