do not insert children of repeating events into meta repeating table

This commit is contained in:
tibbi 2017-06-10 22:20:24 +02:00
parent fdf9ba3f41
commit 2e274eb9b2
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val id = mDb.insert(MAIN_TABLE_NAME, null, eventValues)
event.id = id.toInt()
if (event.repeatInterval != 0) {
if (event.repeatInterval != 0 && event.parentId == 0) {
val metaValues = fillMetaValues(event)
mDb.insert(META_TABLE_NAME, null, metaValues)
}