pull/2337/head
kunfei 2 years ago
parent 5d55c36a53
commit 8fd179cf64
  1. 3
      app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt

@ -9,6 +9,7 @@ import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import io.legado.app.R
import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.AppLog
import io.legado.app.constant.Theme
import io.legado.app.databinding.ActivityTranslucenceBinding
import io.legado.app.help.IntentData
@ -89,6 +90,7 @@ class HandleFileActivity :
HandleFileContract.DIR -> kotlin.runCatching {
selectDocTree.launch()
}.onFailure {
AppLog.put(getString(R.string.open_sys_dir_picker_error), it)
toastOnUi(R.string.open_sys_dir_picker_error)
checkPermissions {
FilePickerDialog.show(
@ -100,6 +102,7 @@ class HandleFileActivity :
HandleFileContract.FILE -> kotlin.runCatching {
selectDoc.launch(typesOfExtensions(allowExtensions))
}.onFailure {
AppLog.put(getString(R.string.open_sys_dir_picker_error), it)
toastOnUi(R.string.open_sys_dir_picker_error)
FilePickerDialog.show(
supportFragmentManager,

Loading…
Cancel
Save