From f998f2d956be8a63c5bb8addf3ee0be3fcfcf866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Fri, 28 Feb 2020 21:09:27 +0100 Subject: [PATCH] [Home/Timetable] Remove "?" lessons from timetable card. --- .../edziennik/ui/modules/home/cards/HomeTimetableCard.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeTimetableCard.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeTimetableCard.kt index 7585f1a8..5a33f136 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeTimetableCard.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/home/cards/HomeTimetableCard.kt @@ -208,6 +208,8 @@ class HomeTimetableCard( return@launch } + lessons = lessons.filter { it.type != Lesson.TYPE_NO_LESSONS } + b.timetableLayout.visibility = View.VISIBLE b.noTimetableLayout.visibility = View.GONE b.noLessonsLayout.visibility = View.GONE