From 80bad4de21d251eeb8a180036ea9c770e436c4e4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 25 Oct 2019 14:03:17 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/config/ConfigFragment.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) }