From d940849decffcc07d7f3fa766c414f67f6703973 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 31 Jan 2020 17:20: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 --- .../main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt index 14fe2d5a5..5a028a8be 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt @@ -47,7 +47,7 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : cb_select.isChecked = selectedUris.contains(item.uri.toString()) onClick { if (item.isDir) { - callBack.nextDoc(DocumentFile.fromTreeUri(context, item.uri)!!) + callBack.nextDoc(DocumentFile.fromSingleUri(context, item.uri)!!) } else { cb_select.isChecked = !cb_select.isChecked if (cb_select.isChecked) {