mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
5d55c36a53
commit
8fd179cf64
@ -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…
Reference in New Issue
Block a user