mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-25 15:52:26 +01:00
simplify the way we are getting repeatable events
This commit is contained in:
parent
a9bebaa4a6
commit
73a9dc56da
@ -337,9 +337,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
for (e in events) {
|
||||
while (e.startTS < toTS && (e.repeatLimit == 0 || e.repeatLimit > e.endTS)) {
|
||||
if (e.startTS > fromTS) {
|
||||
val newEvent = Event(e.id, e.startTS, e.endTS, e.title, e.description, e.reminder1Minutes, e.reminder2Minutes, e.reminder3Minutes,
|
||||
e.repeatInterval, e.importId, e.flags, e.eventType)
|
||||
newEvents.add(newEvent)
|
||||
newEvents.add(e.copy())
|
||||
}
|
||||
e.addIntervalTime()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user