diff --git a/app/src/main/java/io/legado/app/utils/DocumentExtensions.kt b/app/src/main/java/io/legado/app/utils/DocumentExtensions.kt index db10a9bc2..0208f8f93 100644 --- a/app/src/main/java/io/legado/app/utils/DocumentExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/DocumentExtensions.kt @@ -99,9 +99,9 @@ object DocumentUtils { if (!uri.isContentScheme()) { return listFiles(uri.path!!, filter) } - val docList = arrayListOf() val childrenUri = DocumentsContract .buildChildDocumentsUriUsingTree(uri, DocumentsContract.getDocumentId(uri)) + val docList = arrayListOf() var cursor: Cursor? = null try { cursor = appCtx.contentResolver.query(