优化
This commit is contained in:
@@ -247,7 +247,12 @@ class BackupConfigFragment : PreferenceFragment(),
|
|||||||
appCtx.toastOnUi(R.string.backup_success)
|
appCtx.toastOnUi(R.string.backup_success)
|
||||||
}.onError {
|
}.onError {
|
||||||
AppLog.put("备份出错\n${it.localizedMessage}", it)
|
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 {
|
} else {
|
||||||
backupDir.launch()
|
backupDir.launch()
|
||||||
@@ -270,7 +275,7 @@ class BackupConfigFragment : PreferenceFragment(),
|
|||||||
appCtx.toastOnUi(R.string.backup_success)
|
appCtx.toastOnUi(R.string.backup_success)
|
||||||
}.onError {
|
}.onError {
|
||||||
AppLog.put("备份出错\n${it.localizedMessage}", it)
|
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()
|
.request()
|
||||||
|
|||||||
Reference in New Issue
Block a user