mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-05 21:07:30 +01:00
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
Block a user