Relax MIUI backup/restore warning

Closes #965
This commit is contained in:
arkon 2021-07-21 18:14:07 -04:00 committed by Jays2Kings
parent 2a178123c2
commit 372830b6d4
2 changed files with 5 additions and 2 deletions

View File

@ -54,6 +54,10 @@ class SettingsBackupController : SettingsController() {
summaryRes = R.string.can_be_used_to_restore
onClick {
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
}
if (!BackupCreateService.isRunning(context)) {
val ctrl = CreateBackupDialog()
ctrl.targetController = this@SettingsBackupController
@ -71,7 +75,6 @@ class SettingsBackupController : SettingsController() {
onClick {
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
return@onClick
}
if (!BackupRestoreService.isRunning(context)) {

View File

@ -714,7 +714,7 @@
<string name="what_should_backup">What do you want to backup?</string>
<string name="restoring_backup">Restoring backup</string>
<string name="restore_duration">%02d min, %02d sec</string>
<string name="restore_miui_warning">MIUI Optimization must be enabled for restore to work correctly.</string>
<string name="restore_miui_warning">Backup/restore may not function properly if MIUI Optimization is disabled.</string>
<string name="progress">Progress</string>
<string name="complete">Complete</string>
<plurals name="restore_completed_message">