use the regular_event_id constant at adding the regular event in db

This commit is contained in:
tibbi 2017-02-11 17:19:45 +01:00
parent c867e44cdc
commit 951a03ec7c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}