mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
use minimal height at weekly views instant events and tasks
This commit is contained in:
@@ -464,7 +464,13 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
true -> (endDateTime.minuteOfDay - startMinutes)
|
true -> (endDateTime.minuteOfDay - startMinutes)
|
||||||
else -> 1440
|
else -> 1440
|
||||||
}
|
}
|
||||||
val range = Range(startMinutes, startMinutes + duration)
|
|
||||||
|
var endMinutes = startMinutes + duration
|
||||||
|
if (endMinutes - startMinutes < minimalHeight) {
|
||||||
|
endMinutes += Math.round(minimalHeight / minuteHeight)
|
||||||
|
}
|
||||||
|
|
||||||
|
val range = Range(startMinutes, endMinutes)
|
||||||
val eventWeekly = EventWeeklyView(range)
|
val eventWeekly = EventWeeklyView(range)
|
||||||
|
|
||||||
if (!eventTimeRanges.containsKey(currentDayCode)) {
|
if (!eventTimeRanges.containsKey(currentDayCode)) {
|
||||||
|
Reference in New Issue
Block a user