From 0e4ce0f1ae8d8edf17519195b9a9ff62fb3b624e Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 21 Jul 2021 18:14:07 -0400 Subject: [PATCH] Relax MIUI backup/restore warning --- .../eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt | 2 -- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt index fd94114b6..ef80ae6a6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt @@ -65,7 +65,6 @@ class SettingsBackupController : SettingsController() { onClick { if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) { context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG) - return@onClick } if (!BackupCreateService.isRunning(context)) { @@ -85,7 +84,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)) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d82693e09..a358e1d65 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -421,7 +421,7 @@ What do you want to backup? Creating backup Backup failed - MIUI Optimization must be enabled for backup/restore to work correctly. + Backup/restore may not function properly if MIUI Optimization is disabled. Restore is already in progress Restoring backup Restoring backup failed