From 888a0bcd99fab95b8c6ebe63e26c2b807394dde1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 25 May 2018 23:02:08 +0200 Subject: [PATCH] fix #504, do not dim future occurrences of repeatable events --- .../kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt index 4bf65c121..e43e3e275 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt @@ -756,7 +756,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont } } else { if (event.endTS >= fromTS) { - events.add(event.copy()) + events.add(event.copy(isPastEvent = getIsPastEvent(event))) } else if (event.getIsAllDay()) { val dayCode = Formatter.getDayCodeFromTS(fromTS) val endDayCode = Formatter.getDayCodeFromTS(event.endTS)