all: reformat

This commit is contained in:
Alexander Capehart
2025-07-04 17:09:40 -06:00
parent 1a80b38228
commit 7d6417aea8
2 changed files with 7 additions and 11 deletions
@@ -396,8 +396,7 @@ constructor(
val fs =
when (musicSettings.locationMode) {
LocationMode.SAF -> SAF.from(context, musicSettings.safQuery)
LocationMode.MEDIA_STORE ->
MediaStore.from(context, musicSettings.mediaStoreQuery)
LocationMode.MEDIA_STORE -> MediaStore.from(context, musicSettings.mediaStoreQuery)
}
val storage = Storage(cache, covers, storedPlaylists)
val interpretation = Interpretation(nameFactory, separators)
@@ -161,16 +161,13 @@ private constructor(
private fun startTracking() {
stopTracking()
val fs = when (musicSettings.locationMode) {
LocationMode.MEDIA_STORE -> MediaStore.from(workerContext, musicSettings.mediaStoreQuery)
LocationMode.SAF -> SAF.from(workerContext, musicSettings.safQuery)
}
trackingJob =
indexScope.launch {
fs.track().collect {
requestIndex(true)
}
val fs =
when (musicSettings.locationMode) {
LocationMode.MEDIA_STORE ->
MediaStore.from(workerContext, musicSettings.mediaStoreQuery)
LocationMode.SAF -> SAF.from(workerContext, musicSettings.safQuery)
}
trackingJob = indexScope.launch { fs.track().collect { requestIndex(true) } }
}
private fun stopTracking() {