mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
do not insert children of repeating events into meta repeating table
This commit is contained in:
@@ -168,7 +168,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
val id = mDb.insert(MAIN_TABLE_NAME, null, eventValues)
|
val id = mDb.insert(MAIN_TABLE_NAME, null, eventValues)
|
||||||
event.id = id.toInt()
|
event.id = id.toInt()
|
||||||
|
|
||||||
if (event.repeatInterval != 0) {
|
if (event.repeatInterval != 0 && event.parentId == 0) {
|
||||||
val metaValues = fillMetaValues(event)
|
val metaValues = fillMetaValues(event)
|
||||||
mDb.insert(META_TABLE_NAME, null, metaValues)
|
mDb.insert(META_TABLE_NAME, null, metaValues)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user