From 806fabc89a2e0cdc9de7d6e80401f19434035714 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Tue, 19 Nov 2024 17:52:44 -0700 Subject: [PATCH] music: rename indexer -> indexing holder --- .../auxio/music/service/{Indexer.kt => IndexingHolder.kt} | 4 ++-- .../oxycblt/auxio/music/service/MusicServiceFragment.kt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename app/src/main/java/org/oxycblt/auxio/music/service/{Indexer.kt => IndexingHolder.kt} (99%) diff --git a/app/src/main/java/org/oxycblt/auxio/music/service/Indexer.kt b/app/src/main/java/org/oxycblt/auxio/music/service/IndexingHolder.kt similarity index 99% rename from app/src/main/java/org/oxycblt/auxio/music/service/Indexer.kt rename to app/src/main/java/org/oxycblt/auxio/music/service/IndexingHolder.kt index 2fcb5a9ca..1e319a9ed 100644 --- a/app/src/main/java/org/oxycblt/auxio/music/service/Indexer.kt +++ b/app/src/main/java/org/oxycblt/auxio/music/service/IndexingHolder.kt @@ -36,7 +36,7 @@ import org.oxycblt.auxio.playback.state.PlaybackStateManager import org.oxycblt.auxio.util.getSystemServiceCompat import timber.log.Timber as L -class Indexer +class IndexingHolder private constructor( override val workerContext: Context, private val foregroundListener: ForegroundListener, @@ -60,7 +60,7 @@ private constructor( private val contentObserver: SystemContentObserver ) { fun create(context: Context, listener: ForegroundListener) = - Indexer( + IndexingHolder( context, listener, playbackManager, diff --git a/app/src/main/java/org/oxycblt/auxio/music/service/MusicServiceFragment.kt b/app/src/main/java/org/oxycblt/auxio/music/service/MusicServiceFragment.kt index 05a2b60e0..b88e674da 100644 --- a/app/src/main/java/org/oxycblt/auxio/music/service/MusicServiceFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/music/service/MusicServiceFragment.kt @@ -39,11 +39,11 @@ constructor( context: Context, foregroundListener: ForegroundListener, private val invalidator: Invalidator, - indexerFactory: Indexer.Factory, + indexingHolderFactory: IndexingHolder.Factory, musicBrowserFactory: MusicBrowser.Factory, private val musicRepository: MusicRepository ) : MusicBrowser.Invalidator { - private val indexer = indexerFactory.create(context, foregroundListener) + private val indexer = indexingHolderFactory.create(context, foregroundListener) private val musicBrowser = musicBrowserFactory.create(context, this) private val dispatchJob = Job() private val dispatchScope = CoroutineScope(dispatchJob + Dispatchers.Default) @@ -53,7 +53,7 @@ constructor( class Factory @Inject constructor( - private val indexerFactory: Indexer.Factory, + private val indexingHolderFactory: IndexingHolder.Factory, private val musicBrowserFactory: MusicBrowser.Factory, private val musicRepository: MusicRepository ) { @@ -66,7 +66,7 @@ constructor( context, foregroundListener, invalidator, - indexerFactory, + indexingHolderFactory, musicBrowserFactory, musicRepository) }