From aa16c1ee51b65fe376e4651e625d1de660bbda97 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 30 Jun 2019 23:16:49 +0200 Subject: [PATCH] properly show events starting and ending at midnight on the monthly view --- .../com/simplemobiletools/calendar/pro/views/MonthView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt index ddf7dffa6..9a1d52c60 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt @@ -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() } }