make sure all-day events are correctly shown on the weekly view

This commit is contained in:
tibbi 2018-12-05 11:22:56 +01:00
parent 53b5dc3e34
commit d142817ed6

View File

@ -353,7 +353,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
val minTS = Math.max(startDateTime.seconds(), mWeekTimestamp)
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
}