mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@@ -100,7 +100,7 @@ cn.hutool.core.util.**{*;}
|
||||
*** mNavButtonView;
|
||||
}
|
||||
|
||||
# FileDocExtensions.kt TreeDocumentFileConstructor
|
||||
# FileDocExtensions.kt treeDocumentFileConstructor
|
||||
-keep class androidx.documentfile.provider.TreeDocumentFile
|
||||
|
||||
# JsoupXpath
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user