From 2d9ffaa2573ec7e712b8c742b9531ec3958f2c92 Mon Sep 17 00:00:00 2001 From: Sunik Kupfer Date: Wed, 9 Oct 2024 14:54:25 +0200 Subject: [PATCH] Update KDoc --- app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt b/app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt index 9d6cdc631..92aec5f71 100644 --- a/app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt +++ b/app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt @@ -138,7 +138,9 @@ abstract class Syncer>( * * @param localCollections The local collections to be updated or deleted * @param dbCollections The database collections possibly containing new information - * @return New found database collections to be created in provider + * @return Pair of: + * 1) New found database collections to be created in provider + * 2) Local collections which have been deleted */ @VisibleForTesting internal fun updateCollections( @@ -152,7 +154,7 @@ abstract class Syncer>( if (dbCollection == null) { // Collection not available in db = on server (anymore), delete obsolete local collection localCollection.deleteCollection() - deletedLocalCollections.add(localCollection) + deletedLocalCollections.add(localCollection) // Add to "not to be synced" list } else { // Collection exists locally, update local collection and remove it from "to be created" map update(localCollection, dbCollection)