pull/951/head
gedoor 4 years ago
parent b5e0808a17
commit db0f89d0d8
  1. 2
      app/src/main/java/io/legado/app/ui/document/FilePickerActivity.kt

@ -123,7 +123,7 @@ class FilePickerActivity :
"txt", "xml" -> types.add("text/*") "txt", "xml" -> types.add("text/*")
else -> { else -> {
val mime = MimeTypeMap.getSingleton() val mime = MimeTypeMap.getSingleton()
.getMimeTypeFromExtension("json") .getMimeTypeFromExtension(it)
?: "application/octet-stream" ?: "application/octet-stream"
types.add(mime) types.add(mime)
} }

Loading…
Cancel
Save