pull/274/head
gedoor 4 years ago
parent 5956f6032a
commit 6b295f0b1d
  1. 1
      app/src/main/java/io/legado/app/ui/filechooser/FilePicker.kt

@ -172,6 +172,7 @@ object FilePicker {
val intent = Intent(Intent.ACTION_GET_CONTENT) val intent = Intent(Intent.ACTION_GET_CONTENT)
intent.addCategory(Intent.CATEGORY_OPENABLE) intent.addCategory(Intent.CATEGORY_OPENABLE)
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
intent.type = "*/*"
return intent return intent
} }

Loading…
Cancel
Save