mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user