From 822e6c03b58e43c586ad8cec23de73a641ae512f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 25 Dec 2021 22:53:23 +0100 Subject: [PATCH] fetch event reminders as a list so that they can be duplicate --- .../kotlin/com/simplemobiletools/calendar/pro/models/Event.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/models/Event.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/models/Event.kt index 3fa39b49d..374e459e8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/models/Event.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/models/Event.kt @@ -8,9 +8,9 @@ import androidx.room.PrimaryKey import com.simplemobiletools.calendar.pro.extensions.seconds import com.simplemobiletools.calendar.pro.helpers.* import com.simplemobiletools.commons.extensions.addBitIf -import java.io.Serializable import org.joda.time.DateTime import org.joda.time.DateTimeZone +import java.io.Serializable @Entity(tableName = "events", indices = [(Index(value = ["id"], unique = true))]) data class Event( @@ -142,7 +142,7 @@ data class Event( fun getIsAllDay() = flags and FLAG_ALL_DAY != 0 fun hasMissingYear() = flags and FLAG_MISSING_YEAR != 0 - fun getReminders() = setOf( + fun getReminders() = listOf( Reminder(reminder1Minutes, reminder1Type), Reminder(reminder2Minutes, reminder2Type), Reminder(reminder3Minutes, reminder3Type)