mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-02 03:36:50 +01:00
fix displaying repeating events x times
This commit is contained in:
parent
6c320ebdae
commit
97e5489f0f
@ -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++
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user