Skip to content

Commit 945029e

Browse files
committed
Rename CollectionsChangeListener and fix kdoc
1 parent d6c984e commit 945029e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/kotlin/at/bitfire/davdroid/repository/CollectionsChangeListener.kt app/src/main/kotlin/at/bitfire/davdroid/repository/SyncOnCollectionsChangeListener.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import java.util.logging.Logger
2020
import javax.inject.Inject
2121

2222
/**
23-
* Collection change listener that enqueues a push registration worker when the collection list changes.
23+
* Enqueues a sync worker after a short delay when the collection list changes.
2424
*/
25-
class CollectionsChangeListener @Inject constructor(
25+
class SyncOnCollectionsChangeListener @Inject constructor(
2626
private val workerManager: SyncWorkerManager,
2727
private val logger: Logger
2828
): DavCollectionRepository.OnChangeListener {
@@ -45,14 +45,14 @@ class CollectionsChangeListener @Inject constructor(
4545

4646

4747
/**
48-
* Hilt module that registers [CollectionsChangeListener] in [DavCollectionRepository].
48+
* Hilt module that registers [SyncOnCollectionsChangeListener] in [DavCollectionRepository].
4949
*/
5050
@Module
5151
@InstallIn(SingletonComponent::class)
5252
interface CollectionsListenerModule {
5353
@Binds
5454
@IntoSet
55-
fun listener(impl: CollectionsChangeListener): DavCollectionRepository.OnChangeListener
55+
fun listener(impl: SyncOnCollectionsChangeListener): DavCollectionRepository.OnChangeListener
5656
}
5757

5858
}

0 commit comments

Comments
 (0)