make sure we schedule the notifications of imported events
This commit is contained in:
parent
399cb84493
commit
86fd2f6fac
|
@ -249,7 +249,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||
}
|
||||
|
||||
if (mEvent.id == 0) {
|
||||
dbHelper.insert(mEvent)
|
||||
dbHelper.insert(mEvent) {}
|
||||
} else {
|
||||
dbHelper.update(mEvent)
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.simplemobiletools.calendar.helpers
|
||||
|
||||
import android.content.Context
|
||||
import com.simplemobiletools.calendar.extensions.scheduleNotification
|
||||
import com.simplemobiletools.calendar.extensions.seconds
|
||||
import com.simplemobiletools.calendar.helpers.IcsParser.ImportResult.*
|
||||
import com.simplemobiletools.calendar.models.Event
|
||||
|
@ -51,7 +52,9 @@ class IcsParser {
|
|||
continue
|
||||
|
||||
val event = Event(0, curStart, curEnd, curTitle, curDescription, reminderMinutes)
|
||||
dbHelper.insert(event)
|
||||
dbHelper.insert(event) {
|
||||
context.scheduleNotification(event)
|
||||
}
|
||||
eventsImported++
|
||||
resetValues()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue