|
|
@ -99,9 +99,9 @@ object DocumentUtils { |
|
|
|
if (!uri.isContentScheme()) { |
|
|
|
if (!uri.isContentScheme()) { |
|
|
|
return listFiles(uri.path!!, filter) |
|
|
|
return listFiles(uri.path!!, filter) |
|
|
|
} |
|
|
|
} |
|
|
|
val docList = arrayListOf<FileDoc>() |
|
|
|
|
|
|
|
val childrenUri = DocumentsContract |
|
|
|
val childrenUri = DocumentsContract |
|
|
|
.buildChildDocumentsUriUsingTree(uri, DocumentsContract.getDocumentId(uri)) |
|
|
|
.buildChildDocumentsUriUsingTree(uri, DocumentsContract.getDocumentId(uri)) |
|
|
|
|
|
|
|
val docList = arrayListOf<FileDoc>() |
|
|
|
var cursor: Cursor? = null |
|
|
|
var cursor: Cursor? = null |
|
|
|
try { |
|
|
|
try { |
|
|
|
cursor = appCtx.contentResolver.query( |
|
|
|
cursor = appCtx.contentResolver.query( |
|
|
|