优化
This commit is contained in:
1 parent
33d769d5c2
commit
0330efade1
8 files changed
+17
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user