[Notifications/LessonChange] Fix lesson change notifications text.

This commit is contained in:
Kacper Ziubryniewicz
2019-12-01 21:54:59 +01:00
parent 4e88efae94
commit acf364166b
2 changed files with 3 additions and 3 deletions

View File

@ -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()
}
}