[UI/Agenda] Fix subject, teacher and time display in all day events.

This commit is contained in:
Kuba Szczodrzyński 2020-02-13 13:33:04 +01:00
parent 2e0c6fa6a5
commit a095520d0d

View File

@ -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" } ?: ""),