pull/83/head
kunfei 5 years ago
parent 985a53f862
commit 57d200176c
  1. 7
      app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt

@ -79,7 +79,12 @@ class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity
when (requestCode) {
requestCodeSelectFolder -> if (resultCode == Activity.RESULT_OK) {
data?.data?.let {
contentResolver.takePersistableUriPermission(
it,
Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
)
AppConfig.importBookPath = it.toString()
upPath()
}
}
}

Loading…
Cancel
Save