music: update file tree cache setting position

This commit is contained in:
Alexander Capehart
2025-06-22 19:31:02 -06:00
parent 23615689bd
commit 36820ec305
2 changed files with 8 additions and 6 deletions
@@ -136,7 +136,7 @@ class MusicSettingsImpl @Inject constructor(@ApplicationContext private val cont
get() = sharedPreferences.getBoolean(getString(R.string.set_key_auto_sort_names), true)
override val useFileTreeCache: Boolean
get() = sharedPreferences.getBoolean(getString(R.string.set_key_fs_cache), true)
get() = sharedPreferences.getBoolean(getString(R.string.set_key_fs_cache), false)
override fun onSettingChanged(key: String, listener: MusicSettings.Listener) {
// TODO: Differentiate "hard reloads" (Need the cache) and "Soft reloads"
+7 -5
View File
@@ -33,16 +33,18 @@
app:summary="@string/set_locations_desc"
app:title="@string/set_locations" />
<SwitchPreferenceCompat
app:key="@string/set_key_fs_cache"
app:summary="@string/set_fs_cache_desc"
app:title="@string/set_fs_cache" />
<org.oxycblt.auxio.settings.ui.WrappedDialogPreference
app:key="@string/set_key_excluded_dirs"
app:summary="@string/set_excluded_locations_desc"
app:title="@string/set_excluded_locations" />
<SwitchPreferenceCompat
app:key="@string/set_key_fs_cache"
app:summary="@string/set_fs_cache_desc"
app:title="@string/set_fs_cache"
app:defaultValue="false" />
<Preference
app:key="@string/set_key_reindex"
app:summary="@string/set_reindex_desc"