From e8888d0651167fe854672f4588e208569af7aa56 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 23 Jan 2023 17:30:54 +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/document/HandleFileActivity.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt b/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt index 3944873bd..6bbade08b 100644 --- a/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt +++ b/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt @@ -160,9 +160,7 @@ class HandleFileActivity : } private fun getDirActions(onlySys: Boolean = false): ArrayList> { - return if ( - onlySys || (Permissions.isManageExternalStorage() && AppConfig.isGooglePlay) - ) { + return if (onlySys || AppConfig.isGooglePlay) { arrayListOf(SelectItem(getString(R.string.sys_folder_picker), HandleFileContract.DIR)) } else { arrayListOf( @@ -173,7 +171,7 @@ class HandleFileActivity : } private fun getFileActions(): ArrayList> { - return if (Permissions.isManageExternalStorage() && AppConfig.isGooglePlay) { + return if (AppConfig.isGooglePlay) { arrayListOf(SelectItem(getString(R.string.sys_file_picker), HandleFileContract.FILE)) } else { arrayListOf(