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将从本地备份恢复。")