This commit is contained in:
kunfei
2022-02-17 08:07:58 +08:00
parent 33d769d5c2
commit 0330efade1
8 changed files with 17 additions and 1 deletions
@@ -97,7 +97,16 @@ class HandleFileActivity :
)
}
}
HandleFileContract.FILE -> selectDoc.launch(typesOfExtensions(allowExtensions))
HandleFileContract.FILE -> kotlin.runCatching {
selectDoc.launch(typesOfExtensions(allowExtensions))
}.onFailure {
toastOnUi(R.string.open_sys_dir_picker_error)
FilePickerDialog.show(
supportFragmentManager,
mode = HandleFileContract.FILE,
allowExtensions = allowExtensions
)
}
10 -> checkPermissions {
FilePickerDialog.show(
supportFragmentManager,