From 5d83cf972669963f2848f2b32b4fec52dda63e1f Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 9 Feb 2020 11:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/config/OtherConfigFragment.kt | 6 +++--- app/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt index 89f7c48cc..31c3d709f 100644 --- a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt @@ -128,10 +128,10 @@ class OtherConfigFragment : PreferenceFragmentCompat(), titleResource = R.string.select_folder items(resources.getStringArray(R.array.select_folder).toList()) { _, i -> when (i) { - 1 -> { + 0 -> { removePref(PreferKey.downloadPath) } - 2 -> { + 1 -> { try { val intent = Intent(Intent.ACTION_OPEN_DOCUMENT_TREE) intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) @@ -141,7 +141,7 @@ class OtherConfigFragment : PreferenceFragmentCompat(), toast(e.localizedMessage ?: "ERROR") } } - 3 -> PermissionsCompat.Builder(this@OtherConfigFragment) + 2 -> PermissionsCompat.Builder(this@OtherConfigFragment) .addPermissions(*Permissions.Group.STORAGE) .rationale(R.string.tip_perm_request_storage) .onGranted { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8094ad0df..031dcaa48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -601,7 +601,7 @@ 正在启动服务\n具体信息查看通知栏 默认路径 系统文件夹选择器 - 自带选择器 - Android10以上因为权限限制可能无法读取文件 + 自带选择器\n(Android10以上因权限限制可能无法使用) + Android10以上因权限限制可能无法读写文件