From a095520d0db902820210fa0a5818a6d37271533e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 13 Feb 2020 13:33:04 +0100 Subject: [PATCH] [UI/Agenda] Fix subject, teacher and time display in all day events. --- .../szczodrzynski/edziennik/ui/modules/agenda/AgendaFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/agenda/AgendaFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/agenda/AgendaFragment.kt index 9804890c..ebe7e19e 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/agenda/AgendaFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/agenda/AgendaFragment.kt @@ -216,7 +216,7 @@ class AgendaFragment : Fragment(), CoroutineScope { eventList.add(BaseCalendarEvent( "${event.typeName} - ${event.topic}", "", - if (event.startTime == null) getString(R.string.agenda_event_all_day) else event.startTime!!.stringHM + + (if (event.startTime == null) getString(R.string.agenda_event_all_day) else event.startTime!!.stringHM) + (event.subjectLongName?.let { ", $it" } ?: "") + (event.teacherFullName?.let { ", $it" } ?: "") + (event.teamName?.let { ", $it" } ?: ""),