pull/1397/head
gedoor 3 years ago
parent 88a7b29bbe
commit e08cfd196a
  1. 5
      app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt

@ -46,8 +46,9 @@ class HandleFileActivity :
}
private val selectDoc = registerForActivityResult(ActivityResultContracts.OpenDocument()) {
it ?: return@registerForActivityResult
onResult(Intent().setData(it))
it?.let {
onResult(Intent().setData(it))
} ?: finish()
}
override fun onActivityCreated(savedInstanceState: Bundle?) {

Loading…
Cancel
Save