From 951a03ec7cec6bcc8e02496b5c0cf69c4c0ec6be Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 11 Feb 2017 17:19:45 +0100 Subject: [PATCH] use the regular_event_id constant at adding the regular event in db --- .../kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt index d94621bb8..47cba98f8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt @@ -111,7 +111,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont private fun addRegularEventType(db: SQLiteDatabase) { val regularEvent = context.resources.getString(R.string.regular_event) - val eventType = EventType(1, regularEvent, context.config.primaryColor) + val eventType = EventType(REGULAR_EVENT_ID, regularEvent, context.config.primaryColor) addEventType(eventType, db) }