pull/42/head
kunfei 5 years ago
parent a0390b74cb
commit 80bad4de21
  1. 7
      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 { override fun onPreferenceTreeClick(preference: Preference?): Boolean {
when (preference?.key) { when (preference?.key) {
"downloadPath" -> fragmentManager?.let { FileChooserDialog.show(it) } "downloadPath" -> fragmentManager?.let {
FileChooserDialog.show(
it,
mode = FileChooserDialog.DIRECTORY
)
}
} }
return super.onPreferenceTreeClick(preference) return super.onPreferenceTreeClick(preference)
} }

Loading…
Cancel
Save