Skip to content

Commit

Permalink
Fixed small UI issue with empty time prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
tonykolomeytsev committed Mar 9, 2021
1 parent 7e8c68d commit 91cd691
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ class UpcomingEventsListConverter(
NextClassesCondition.NOT_STARTED -> {
val formattedHoursMinutes =
TimeDeclensionHelper.formatHoursMinutes(context, hours, minutes)
add(TextItem( "$prefix $formattedHoursMinutes"))
if (formattedHoursMinutes.isNotBlank()) {
add(TextItem("$prefix $formattedHoursMinutes"))
}
}
NextClassesCondition.STARTED -> Unit
else -> Unit
Expand Down

0 comments on commit 91cd691

Please sign in to comment.