properly show events starting and ending at midnight on the monthly view

This commit is contained in:
tibbi 2019-06-30 23:16:49 +02:00
parent dd49dea351
commit aa16c1ee51
1 changed files with 1 additions and 1 deletions

View File

@ -346,6 +346,6 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
private fun isDayValid(event: Event, code: String): Boolean {
val date = Formatter.getDateTimeFromCode(code)
return Formatter.getDateTimeFromTS(event.endTS) == Formatter.getDateTimeFromTS(date.seconds()).withTimeAtStartOfDay()
return event.startTS != event.endTS && Formatter.getDateTimeFromTS(event.endTS) == Formatter.getDateTimeFromTS(date.seconds()).withTimeAtStartOfDay()
}
}