From 33a09ae46c958cc390cb4ca7aabe7726d1d7e13a Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 31 Oct 2020 17:39:08 +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 --- .../main/java/io/legado/app/ui/filepicker/FilePicker.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/filepicker/FilePicker.kt b/app/src/main/java/io/legado/app/ui/filepicker/FilePicker.kt index 3f1116b89..98948b27d 100644 --- a/app/src/main/java/io/legado/app/ui/filepicker/FilePicker.kt +++ b/app/src/main/java/io/legado/app/ui/filepicker/FilePicker.kt @@ -24,7 +24,7 @@ object FilePicker { otherFun: ((action: String) -> Unit)? = null ) { val selectList = arrayListOf(activity.getString(R.string.sys_folder_picker)) - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) { selectList.add(activity.getString(R.string.app_folder_picker)) } otherActions?.let { @@ -69,7 +69,7 @@ object FilePicker { otherFun: ((action: String) -> Unit)? = null ) { val selectList = arrayListOf(fragment.getString(R.string.sys_folder_picker)) - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) { selectList.add(fragment.getString(R.string.app_folder_picker)) } otherActions?.let { @@ -115,7 +115,7 @@ object FilePicker { otherFun: ((action: String) -> Unit)? = null ) { val selectList = arrayListOf(activity.getString(R.string.sys_file_picker)) - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) { selectList.add(activity.getString(R.string.app_file_picker)) } otherActions?.let { @@ -174,7 +174,7 @@ object FilePicker { otherFun: ((action: String) -> Unit)? = null ) { val selectList = arrayListOf(fragment.getString(R.string.sys_file_picker)) - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) { selectList.add(fragment.getString(R.string.app_file_picker)) } otherActions?.let {