优化
This commit is contained in:
Vendored
+1
-1
@@ -100,7 +100,7 @@ cn.hutool.core.util.**{*;}
|
|||||||
*** mNavButtonView;
|
*** mNavButtonView;
|
||||||
}
|
}
|
||||||
|
|
||||||
# FileDocExtensions.kt TreeDocumentFileConstructor
|
# FileDocExtensions.kt treeDocumentFileConstructor
|
||||||
-keep class androidx.documentfile.provider.TreeDocumentFile
|
-keep class androidx.documentfile.provider.TreeDocumentFile
|
||||||
|
|
||||||
# JsoupXpath
|
# JsoupXpath
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ data class FileDoc(
|
|||||||
fun asDocumentFile(): DocumentFile? {
|
fun asDocumentFile(): DocumentFile? {
|
||||||
if (isContentScheme) {
|
if (isContentScheme) {
|
||||||
return if (isDir) {
|
return if (isDir) {
|
||||||
TreeDocumentFileConstructor.newInstance(null, appCtx, uri) as DocumentFile
|
treeDocumentFileConstructor.newInstance(null, appCtx, uri) as DocumentFile
|
||||||
} else {
|
} else {
|
||||||
DocumentFile.fromSingleUri(appCtx, uri)
|
DocumentFile.fromSingleUri(appCtx, uri)
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ data class FileDoc(
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
private val TreeDocumentFileConstructor by lazy {
|
private val treeDocumentFileConstructor by lazy {
|
||||||
Class.forName("androidx.documentfile.provider.TreeDocumentFile")
|
Class.forName("androidx.documentfile.provider.TreeDocumentFile")
|
||||||
.getDeclaredConstructor(
|
.getDeclaredConstructor(
|
||||||
DocumentFile::class.java,
|
DocumentFile::class.java,
|
||||||
|
|||||||
Reference in New Issue
Block a user