pull/2676/head
Horis 2 years ago
parent 5e02358c3c
commit 817be19e32
  1. 2
      app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt
  2. 1
      app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.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 {

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

Loading…
Cancel
Save