concurrent zero duration in week view

This commit is contained in:
Honk2 2021-04-10 12:09:36 +02:00
parent 1fcc794d61
commit d5f5fdb214
1 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
if (!event.getIsAllDay() && Formatter.getDayCodeFromDateTime(startDateTime) == Formatter.getDayCodeFromDateTime(endDateTime)) {
val startMinutes = startDateTime.minuteOfDay
val duration = endDateTime.minuteOfDay - startMinutes
val range = Range(startMinutes, startMinutes + duration)
val range = Range(startMinutes, startMinutes + maxOf(1,duration))
val eventWeekly = EventWeeklyView(event.id!!, range)
val dayCode = Formatter.getDayCodeFromDateTime(startDateTime)
@ -428,7 +428,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
val startMinutes = startDateTime.minuteOfDay
val duration = endDateTime.minuteOfDay - startMinutes
val range = Range(startMinutes, startMinutes + duration)
val range = Range(startMinutes, startMinutes + maxOf(1, duration))
var overlappingEvents = 0
var currentEventOverlapIndex = 0