优化代码

pull/352/head
gedoor 4 years ago
parent 39d3c7fb68
commit b32a581984
  1. 2
      app/src/main/java/io/legado/app/ui/config/BackupRestoreUi.kt

@ -80,7 +80,7 @@ object BackupRestoreUi {
Coroutine.async(context = Main) { Coroutine.async(context = Main) {
WebDavHelp.showRestoreDialog(fragment.requireContext()) WebDavHelp.showRestoreDialog(fragment.requireContext())
}.onError { }.onError {
fragment.longToast("WebDavError:${it.localizedMessage}将从本地备份恢复。") fragment.longToast("WebDavError:${it.localizedMessage}\n将从本地备份恢复。")
val backupPath = fragment.getPrefString(PreferKey.backupPath) val backupPath = fragment.getPrefString(PreferKey.backupPath)
if (backupPath?.isNotEmpty() == true) { if (backupPath?.isNotEmpty() == true) {
if (backupPath.isContentPath()) { if (backupPath.isContentPath()) {

Loading…
Cancel
Save