From 4bcaeb45e6edb1e999917f6033c72c98276a876c Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Fri, 20 Jan 2023 11:32:24 +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 --- app/src/main/java/io/legado/app/lib/permission/Permissions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/lib/permission/Permissions.kt b/app/src/main/java/io/legado/app/lib/permission/Permissions.kt index ebf753b5f..0ee4d2662 100644 --- a/app/src/main/java/io/legado/app/lib/permission/Permissions.kt +++ b/app/src/main/java/io/legado/app/lib/permission/Permissions.kt @@ -42,7 +42,7 @@ object Permissions { const val ACCESS_MEDIA_LOCATION = "android.permission.ACCESS_MEDIA_LOCATION" object Group { - val STORAGE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + val STORAGE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { arrayOf(MANAGE_EXTERNAL_STORAGE) } else { arrayOf(READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE)