all: reformat
This commit is contained in:
@@ -396,8 +396,7 @@ constructor(
|
|||||||
val fs =
|
val fs =
|
||||||
when (musicSettings.locationMode) {
|
when (musicSettings.locationMode) {
|
||||||
LocationMode.SAF -> SAF.from(context, musicSettings.safQuery)
|
LocationMode.SAF -> SAF.from(context, musicSettings.safQuery)
|
||||||
LocationMode.MEDIA_STORE ->
|
LocationMode.MEDIA_STORE -> MediaStore.from(context, musicSettings.mediaStoreQuery)
|
||||||
MediaStore.from(context, musicSettings.mediaStoreQuery)
|
|
||||||
}
|
}
|
||||||
val storage = Storage(cache, covers, storedPlaylists)
|
val storage = Storage(cache, covers, storedPlaylists)
|
||||||
val interpretation = Interpretation(nameFactory, separators)
|
val interpretation = Interpretation(nameFactory, separators)
|
||||||
|
|||||||
@@ -161,16 +161,13 @@ private constructor(
|
|||||||
|
|
||||||
private fun startTracking() {
|
private fun startTracking() {
|
||||||
stopTracking()
|
stopTracking()
|
||||||
val fs = when (musicSettings.locationMode) {
|
val fs =
|
||||||
LocationMode.MEDIA_STORE -> MediaStore.from(workerContext, musicSettings.mediaStoreQuery)
|
when (musicSettings.locationMode) {
|
||||||
LocationMode.SAF -> SAF.from(workerContext, musicSettings.safQuery)
|
LocationMode.MEDIA_STORE ->
|
||||||
}
|
MediaStore.from(workerContext, musicSettings.mediaStoreQuery)
|
||||||
trackingJob =
|
LocationMode.SAF -> SAF.from(workerContext, musicSettings.safQuery)
|
||||||
indexScope.launch {
|
|
||||||
fs.track().collect {
|
|
||||||
requestIndex(true)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
trackingJob = indexScope.launch { fs.track().collect { requestIndex(true) } }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun stopTracking() {
|
private fun stopTracking() {
|
||||||
|
|||||||
Reference in New Issue
Block a user