From 44bc7415723858576f5b69025d1024c13a1492ed Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 12 Mar 2019 11:55:55 +0100 Subject: [PATCH] properly fill the reminder type at CalDAV events --- .../simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt index 70b8fe181..6938c356d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt @@ -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 {