Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 1ecb919

Browse files
committed
AndroidCalendar, JtxCollection: add syncId column
1 parent c2857ad commit 1ecb919

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCalendarTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@ class AndroidCalendarTest {
125125
}
126126
}
127127

128-
}
128+
}

lib/src/main/kotlin/at/bitfire/ical4android/AndroidCalendar.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ abstract class AndroidCalendar<out T: AndroidEvent>(
165165

166166
var ownerAccount: String? = null
167167

168+
var syncId: String? = null
169+
168170

169171
/**
170172
* Sets the calendar properties ([name], [displayName] etc.) from the passed argument,
@@ -186,6 +188,8 @@ abstract class AndroidCalendar<out T: AndroidEvent>(
186188
isVisible = info.getAsInteger(Calendars.VISIBLE) != 0
187189

188190
ownerAccount = info.getAsString(Calendars.OWNER_ACCOUNT)
191+
192+
syncId = info.getAsString(Calendars._SYNC_ID)
189193
}
190194

191195

lib/src/main/kotlin/at/bitfire/ical4android/JtxCollection.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ open class JtxCollection<out T: JtxICalObject>(val account: Account,
6060
var supportsVTODO = true
6161
var supportsVJOURNAL = true
6262

63+
var syncId: Long? = null
64+
6365
var context: Context? = null
6466

6567

@@ -85,6 +87,8 @@ open class JtxCollection<out T: JtxICalObject>(val account: Account,
8587
supportsVJOURNAL = values.getAsString(JtxContract.JtxCollection.SUPPORTSVJOURNAL) == "1"
8688
|| values.getAsString(JtxContract.JtxCollection.SUPPORTSVJOURNAL) == "true"
8789

90+
syncId = values.getAsLong(JtxContract.JtxCollection.SYNC_ID)
91+
8892
this.context = context
8993
}
9094

0 commit comments

Comments
 (0)