fix #504, do not dim future occurrences of repeatable events

This commit is contained in:
tibbi 2018-05-25 23:02:08 +02:00
parent 4210808aec
commit 888a0bcd99

View File

@ -756,7 +756,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
} }
} else { } else {
if (event.endTS >= fromTS) { if (event.endTS >= fromTS) {
events.add(event.copy()) events.add(event.copy(isPastEvent = getIsPastEvent(event)))
} else if (event.getIsAllDay()) { } else if (event.getIsAllDay()) {
val dayCode = Formatter.getDayCodeFromTS(fromTS) val dayCode = Formatter.getDayCodeFromTS(fromTS)
val endDayCode = Formatter.getDayCodeFromTS(event.endTS) val endDayCode = Formatter.getDayCodeFromTS(event.endTS)