Skip to content

Commit

Permalink
Rename CollectionsChangeListener and fix kdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Jan 21, 2025
1 parent d6c984e commit 945029e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import java.util.logging.Logger
import javax.inject.Inject

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


/**
* Hilt module that registers [CollectionsChangeListener] in [DavCollectionRepository].
* Hilt module that registers [SyncOnCollectionsChangeListener] in [DavCollectionRepository].
*/
@Module
@InstallIn(SingletonComponent::class)
interface CollectionsListenerModule {
@Binds
@IntoSet
fun listener(impl: CollectionsChangeListener): DavCollectionRepository.OnChangeListener
fun listener(impl: SyncOnCollectionsChangeListener): DavCollectionRepository.OnChangeListener
}

}

0 comments on commit 945029e

Please sign in to comment.