mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-22 06:27:46 +01:00
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 {
|
||||
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…
x
Reference in New Issue
Block a user