mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[Timetable] Disable setting metadata for normal type lessons.
This commit is contained in:
parent
cc1b581d7e
commit
8a825227cb
@ -25,6 +25,8 @@ class TimetableManager(val app: App) : CoroutineScope {
|
|||||||
|
|
||||||
fun markAsSeen(lesson: LessonFull) {
|
fun markAsSeen(lesson: LessonFull) {
|
||||||
lesson.seen = true
|
lesson.seen = true
|
||||||
|
if (lesson.type <= Lesson.TYPE_NORMAL)
|
||||||
|
return
|
||||||
startCoroutineTimer(500L, 0L) {
|
startCoroutineTimer(500L, 0L) {
|
||||||
app.db.metadataDao().setSeen(lesson.profileId, lesson, true)
|
app.db.metadataDao().setSeen(lesson.profileId, lesson, true)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user