This commit is contained in:
Horis committed 2025-04-27 18:22:52 +08:00
1 parent 4b57f89a87
commit 37b9d024f0
2 files changed
+3 -3

No files matched your search

@@ -45,7 +45,7 @@ data class FileDoc(
fun asDocumentFile(): DocumentFile? {
if (isContentScheme) {
return if (isDir) {
TreeDocumentFileConstructor.newInstance(null, appCtx, uri) as DocumentFile
treeDocumentFileConstructor.newInstance(null, appCtx, uri) as DocumentFile
} else {
DocumentFile.fromSingleUri(appCtx, uri)
}
@@ -62,7 +62,7 @@ data class FileDoc(
companion object {
private val TreeDocumentFileConstructor by lazy {
private val treeDocumentFileConstructor by lazy {
Class.forName("androidx.documentfile.provider.TreeDocumentFile")
.getDeclaredConstructor(
DocumentFile::class.java,