properly fill the reminder type at CalDAV events
This commit is contained in:
parent
f8028e0c16
commit
44bc741572
|
@ -347,9 +347,9 @@ class CalDAVHelper(val context: Context) {
|
|||
clearEventReminders(event)
|
||||
event.getReminders().forEach {
|
||||
val contentValues = ContentValues().apply {
|
||||
put(Reminders.MINUTES, it)
|
||||
put(Reminders.MINUTES, it.minutes)
|
||||
put(Reminders.METHOD, if (it.type == REMINDER_EMAIL) Reminders.METHOD_EMAIL else Reminders.METHOD_ALERT)
|
||||
put(Reminders.EVENT_ID, event.getCalDAVEventId())
|
||||
put(Reminders.METHOD, Reminders.METHOD_ALERT)
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue