Skip to content

Commit 2096b64

Browse files
committed
Add readOnly state access to LocalJtxCollection
1 parent 0975d4e commit 2096b64

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/src/main/kotlin/at/bitfire/davdroid/resource/LocalJtxCollection.kt

+7-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ class LocalJtxCollection(account: Account, client: ContentProviderClient, id: Lo
5151
}
5252

5353
override var readOnly: Boolean
54-
get() = TODO("Not yet implemented")
55-
set(value) {}
54+
get() {
55+
Logger.log.log(Level.INFO, "No access to read-only state of JtxCollection. Assuming write access.")
56+
return false
57+
}
58+
set(value) {
59+
Logger.log.log(Level.INFO, "No access to read-only state of JtxCollection. Did not set value.")
60+
}
5661

5762
override val tag: String
5863
get() = "jtx-${account.name}-$id"

0 commit comments

Comments
 (0)