From 6866dd4801c1698bcf421c5a0d2d2d7bf940d94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Wed, 18 Mar 2020 12:48:04 +0100 Subject: [PATCH] [Widgets/Timetable] Fix "no lessons" and "no timetable" texts overlapping. --- .../edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt index 4e0c829f..7b68a10d 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt @@ -264,7 +264,7 @@ class WidgetTimetableProvider : AppWidgetProvider() { views.setViewVisibility(R.id.widgetTimetableListView, View.GONE) views.setViewVisibility(R.id.widgetTimetableNoTimetable, View.VISIBLE) } - if (lessons.none { !it.isCancelled } || lessons.size == 1 && lessons[0].type == Lesson.TYPE_NO_LESSONS) { + else if (lessons.none { !it.isCancelled } || lessons.size == 1 && lessons[0].type == Lesson.TYPE_NO_LESSONS) { views.setViewVisibility(R.id.widgetTimetableListView, View.GONE) views.setViewVisibility(R.id.widgetTimetableNoLessons, View.VISIBLE) }