music: rename indexer -> indexing holder
This commit is contained in:
parent
556c5d5e0a
commit
806fabc89a
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue