|
|
@ -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() |
|
|
|