pull/1072/head
gedoor 3 years ago
parent e726bce3d0
commit c8be3a3e74
  1. 5
      app/src/main/java/io/legado/app/ui/document/FilePickerActivity.kt

@ -23,7 +23,10 @@ class FilePickerActivity :
private val selectDocTree =
registerForActivityResult(ActivityResultContracts.OpenDocumentTree()) {
it ?: return@registerForActivityResult
it ?: let {
finish()
return@registerForActivityResult
}
if (it.isContentScheme()) {
contentResolver.takePersistableUriPermission(
it,

Loading…
Cancel
Save