Skip to content

Commit

Permalink
music: rename indexer -> indexing holder
Browse files Browse the repository at this point in the history
  • Loading branch information
OxygenCobalt committed Nov 20, 2024
1 parent 556c5d5 commit 806fabc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -60,7 +60,7 @@ private constructor(
private val contentObserver: SystemContentObserver
) {
fun create(context: Context, listener: ForegroundListener) =
Indexer(
IndexingHolder(
context,
listener,
playbackManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
) {
Expand All @@ -66,7 +66,7 @@ constructor(
context,
foregroundListener,
invalidator,
indexerFactory,
indexingHolderFactory,
musicBrowserFactory,
musicRepository)
}
Expand Down

0 comments on commit 806fabc

Please sign in to comment.