properly fill the reminder type at CalDAV events

This commit is contained in:
tibbi 2019-03-12 11:55:55 +01:00
parent f8028e0c16
commit 44bc741572

View file

@ -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 {