From a521d5608f0319bf6fc549c4ade924ed3e12f61c Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Fri, 20 Jan 2023 18:51:13 +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 --- .../io/legado/app/ui/association/FileAssociationActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt index 52a62ca68..f7a1a7bb4 100644 --- a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt @@ -107,7 +107,7 @@ class FileAssociationActivity : intent.data?.let { data -> if (data.isContentScheme()) { viewModel.dispatchIndent(data) - } else { + } else if (!AppConfig.isGooglePlay || Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) { PermissionsCompat.Builder(this) .addPermissions(*Permissions.Group.STORAGE) .rationale(R.string.tip_perm_request_storage) @@ -116,6 +116,8 @@ class FileAssociationActivity : }.onDenied { toastOnUi("请求存储权限失败。") }.request() + } else { + toastOnUi("由于安卓系统限制,请使用系统文件管理重新打开。") } } }