[Timetable] Fix removing all lessons when not needed.

This commit is contained in:
Kuba Szczodrzyński 2019-11-11 14:16:31 +01:00
parent d4e9e1730f
commit 0742a6a74c

View File

@ -289,7 +289,6 @@ open class Data(val app: App, val profile: Profile?, val loginStore: LoginStore)
if (lessonChangeList.isNotEmpty())
db.lessonChangeDao().addAll(lessonChangeList)
if (lessonNewList.isNotEmpty()) {
db.timetableDao().clear(profile.id)
db.timetableDao() += lessonNewList
}
if (gradeList.isNotEmpty()) {