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 = 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() {