properly show events starting and ending at midnight on the monthly view
This commit is contained in:
parent
dd49dea351
commit
aa16c1ee51
|
@ -346,6 +346,6 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
|
||||||
|
|
||||||
private fun isDayValid(event: Event, code: String): Boolean {
|
private fun isDayValid(event: Event, code: String): Boolean {
|
||||||
val date = Formatter.getDateTimeFromCode(code)
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue