mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
c60edaa0fc
commit
42a3cf5c3d
@ -99,9 +99,9 @@ object DocumentUtils {
|
||||
if (!uri.isContentScheme()) {
|
||||
return listFiles(uri.path!!, filter)
|
||||
}
|
||||
val docList = arrayListOf<FileDoc>()
|
||||
val childrenUri = DocumentsContract
|
||||
.buildChildDocumentsUriUsingTree(uri, DocumentsContract.getDocumentId(uri))
|
||||
val docList = arrayListOf<FileDoc>()
|
||||
var cursor: Cursor? = null
|
||||
try {
|
||||
cursor = appCtx.contentResolver.query(
|
||||
|
Loading…
Reference in New Issue
Block a user