pull/2437/head
kunfei 2 years ago
parent a51348f70f
commit 3524d653c7
  1. 2
      app/src/main/java/io/legado/app/utils/FileDocExtensions.kt

@ -52,7 +52,7 @@ data class FileDoc(
} else {
DocumentFile.fromSingleUri(appCtx, uri)!!
}
return FileDoc(doc.name ?: "", true, doc.length(), doc.lastModified(), doc.uri)
return FileDoc(doc.name ?: "", isDir, doc.length(), doc.lastModified(), doc.uri)
}
val file = File(uri.path!!)
return FileDoc(file.name, isDir, file.length(), file.lastModified(), uri)

Loading…
Cancel
Save