From acf364166ba48640100d31e976150fd53aecf39d Mon Sep 17 00:00:00 2001 From: Kacper Ziubryniewicz Date: Sun, 1 Dec 2019 21:54:59 +0100 Subject: [PATCH] [Notifications/LessonChange] Fix lesson change notifications text. --- .idea/misc.xml | 2 +- .../edziennik/data/db/modules/timetable/LessonFull.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() } }