mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-28 17:39:32 +01:00
make sure all-day events are correctly shown on the weekly view
This commit is contained in:
parent
53b5dc3e34
commit
d142817ed6
@ -353,7 +353,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
|
|
||||||
val minTS = Math.max(startDateTime.seconds(), mWeekTimestamp)
|
val minTS = Math.max(startDateTime.seconds(), mWeekTimestamp)
|
||||||
val maxTS = Math.min(endDateTime.seconds(), mWeekTimestamp + WEEK_SECONDS)
|
val maxTS = Math.min(endDateTime.seconds(), mWeekTimestamp + WEEK_SECONDS)
|
||||||
if (minTS == maxTS) {
|
|
||||||
|
// fix a visual glitch with all-day events or events lasting multiple days starting at midnight on monday, being shown the previous week too
|
||||||
|
if (minTS == maxTS && (minTS - mWeekTimestamp == WEEK_SECONDS.toLong())) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user