Skip to content

Commit

Permalink
Fix local test collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Aug 1, 2024
1 parent 5e82f27 commit eceef11
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import at.bitfire.davdroid.resource.LocalCollection
class LocalTestCollection: LocalCollection<LocalTestResource> {

override val tag = "LocalTestCollection"
override val url: String
get() = "https://example.com"
override val title = "Local Test Collection"

override var lastSyncState: SyncState? = null
Expand All @@ -19,6 +21,8 @@ class LocalTestCollection: LocalCollection<LocalTestResource> {
override val readOnly: Boolean
get() = throw NotImplementedError()

override fun delete(): Boolean = true

override fun findDeleted() = entries.filter { it.deleted }
override fun findDirty() = entries.filter { it.dirty }

Expand Down

0 comments on commit eceef11

Please sign in to comment.