From 817be19e32a31eebc6f1356bd905d0c0dfa18dcb Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Wed, 4 Jan 2023 15:26:39 +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/book/group/GroupEditDialog.kt | 2 +- .../main/java/io/legado/app/ui/config/BackupConfigFragment.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt b/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt index 441945e56..a82938175 100644 --- a/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt @@ -58,7 +58,7 @@ class GroupEditDialog() : BaseDialogFragment(R.layout.dialog_book_group_edit) { @Suppress("DEPRECATION") bookGroup = arguments?.getParcelable("group") bookGroup?.let { - binding.btnDelete.visible() + binding.btnDelete.visible(it.groupId > 0 || it.groupId == Long.MIN_VALUE) binding.tieGroupName.setText(it.groupName) binding.ivCover.load(it.cover) } ?: let { diff --git a/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt index a9e645e41..505ac1dc1 100644 --- a/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt @@ -330,6 +330,7 @@ class BackupConfigFragment : PreferenceFragment(), restoreJob = coroutineContext[Job] AppWebDav.showRestoreDialog(requireContext()) }.onError { + AppLog.put("恢复备份出错WebDavError\n${it.localizedMessage}", it) alert { setTitle(R.string.restore) setMessage("WebDavError\n${it.localizedMessage}\n将从本地备份恢复。")