fix displaying repeating events x times

This commit is contained in:
tibbi 2017-04-23 19:15:30 +02:00
parent 6c320ebdae
commit 97e5489f0f

View File

@ -404,8 +404,10 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
}
} else {
// events repeating x times
while (it.startTS < toTS && it.repeatLimit < 0) {
newEvents.add(it.copy())
while (it.repeatLimit < 0) {
if (it.startTS >= fromTS && it.startTS < toTS) {
newEvents.add(it.copy())
}
it.addIntervalTime()
it.repeatLimit++
}