Skip to content

Commit d05bfc5

Browse files
committed
Add sync adapter reference to insert extended properties of events
1 parent 032f9a3 commit d05bfc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/main/kotlin/at/bitfire/synctools/storage/calendar/AndroidCalendar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class AndroidCalendar(
122122

123123
// insert data rows (with reference to main row ID)
124124
for (row in entity.subValues)
125-
batch += CpoBuilder.newInsert(row.uri)
125+
batch += CpoBuilder.newInsert(row.uri.asSyncAdapter(account))
126126
.withValues(row.values)
127127
.withValueBackReference(AndroidEvent2.DATA_ROW_EVENT_ID, /* result of first operation with index = */ 0)
128128
}

lib/src/main/kotlin/at/bitfire/synctools/storage/calendar/AndroidEvent2.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class AndroidEvent2(
9999

100100
fun update(values: ContentValues) = calendar.updateEventRow(id, values)
101101
fun update(entity: Entity) = calendar.updateEvent(id, entity)
102-
fun delete() = calendar.deleteEventAndExceptions(id)
102+
fun deleteWithExceptions() = calendar.deleteEventAndExceptions(id)
103103

104104

105105
// helpers

0 commit comments

Comments
 (0)