Horis 1 год назад
Родитель
Сommit
37b9d024f0

+ 1 - 1
app/proguard-rules.pro

@@ -100,7 +100,7 @@ cn.hutool.core.util.**{*;}
     *** mNavButtonView;
 }
 
-# FileDocExtensions.kt TreeDocumentFileConstructor
+# FileDocExtensions.kt treeDocumentFileConstructor
 -keep class androidx.documentfile.provider.TreeDocumentFile
 
 # JsoupXpath

+ 2 - 2
app/src/main/java/io/legado/app/utils/FileDocExtensions.kt

@@ -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,