diff --git a/app/src/main/java/io/legado/app/ui/config/ConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/ConfigFragment.kt index 3ddd3804f..2020071a6 100644 --- a/app/src/main/java/io/legado/app/ui/config/ConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/ConfigFragment.kt @@ -51,7 +51,12 @@ class ConfigFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChange override fun onPreferenceTreeClick(preference: Preference?): Boolean { when (preference?.key) { - "downloadPath" -> fragmentManager?.let { FileChooserDialog.show(it) } + "downloadPath" -> fragmentManager?.let { + FileChooserDialog.show( + it, + mode = FileChooserDialog.DIRECTORY + ) + } } return super.onPreferenceTreeClick(preference) }