Преглед изворни кода

Relax MIUI backup/restore warning

arkon пре 3 година
родитељ
комит
0e4ce0f1ae

+ 0 - 2
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)) {

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -421,7 +421,7 @@
     <string name="backup_choice">What do you want to backup?</string>
     <string name="creating_backup">Creating backup</string>
     <string name="creating_backup_error">Backup failed</string>
-    <string name="restore_miui_warning">MIUI Optimization must be enabled for backup/restore to work correctly.</string>
+    <string name="restore_miui_warning">Backup/restore may not function properly if MIUI Optimization is disabled.</string>
     <string name="restore_in_progress">Restore is already in progress</string>
     <string name="restoring_backup">Restoring backup</string>
     <string name="restoring_backup_error">Restoring backup failed</string>