diff --git a/.idea/misc.xml b/.idea/misc.xml index e4b2b0ee..15ef006b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -50,7 +50,7 @@ - + diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/modules/timetable/LessonFull.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/modules/timetable/LessonFull.kt index 682689d0..41b761ac 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/modules/timetable/LessonFull.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/modules/timetable/LessonFull.kt @@ -96,9 +96,9 @@ class LessonFull(profileId: Int, id: Long) : Lesson(profileId, id) { } return when (second) { - null -> first ?: "" + null -> first.orEmpty() first -> second - else -> "$first -> $second" + else -> if (first != null) "$first -> $second" else second.orEmpty() } }