forked from github/szkolny
[Timetable] Fix removing all lessons when not needed.
This commit is contained in:
parent
d4e9e1730f
commit
0742a6a74c
@ -289,7 +289,6 @@ open class Data(val app: App, val profile: Profile?, val loginStore: LoginStore)
|
|||||||
if (lessonChangeList.isNotEmpty())
|
if (lessonChangeList.isNotEmpty())
|
||||||
db.lessonChangeDao().addAll(lessonChangeList)
|
db.lessonChangeDao().addAll(lessonChangeList)
|
||||||
if (lessonNewList.isNotEmpty()) {
|
if (lessonNewList.isNotEmpty()) {
|
||||||
db.timetableDao().clear(profile.id)
|
|
||||||
db.timetableDao() += lessonNewList
|
db.timetableDao() += lessonNewList
|
||||||
}
|
}
|
||||||
if (gradeList.isNotEmpty()) {
|
if (gradeList.isNotEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user