From 0742a6a74c74cf96c087afc242a18f62d9bc8b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 11 Nov 2019 14:16:31 +0100 Subject: [PATCH] [Timetable] Fix removing all lessons when not needed. --- .../main/java/pl/szczodrzynski/edziennik/api/v2/models/Data.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/models/Data.kt b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/models/Data.kt index a176ecd1..6ac629ad 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/models/Data.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/api/v2/models/Data.kt @@ -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()) {