pull/1999/head
kunfei 2 years ago
parent 11f6946620
commit d416e84b2b
  1. 9
      app/src/main/java/io/legado/app/ui/config/BackupConfigFragment.kt

@ -247,7 +247,12 @@ class BackupConfigFragment : PreferenceFragment(),
appCtx.toastOnUi(R.string.backup_success)
}.onError {
AppLog.put("备份出错\n${it.localizedMessage}", it)
appCtx.toastOnUi(getString(R.string.backup_fail, it.localizedMessage))
appCtx.toastOnUi(
appCtx.getString(
R.string.backup_fail,
it.localizedMessage
)
)
}
} else {
backupDir.launch()
@ -270,7 +275,7 @@ class BackupConfigFragment : PreferenceFragment(),
appCtx.toastOnUi(R.string.backup_success)
}.onError {
AppLog.put("备份出错\n${it.localizedMessage}", it)
appCtx.toastOnUi(getString(R.string.backup_fail, it.localizedMessage))
appCtx.toastOnUi(appCtx.getString(R.string.backup_fail, it.localizedMessage))
}
}
.request()

Loading…
Cancel
Save