From 8fd179cf6435d94cb4f9ea9fd29fde17606f11de Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 25 Sep 2022 22:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/document/HandleFileActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt b/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt index 7332f783f..3a7097045 100644 --- a/app/src/main/java/io/legado/app/ui/document/HandleFileActivity.kt +++ b/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,