mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 12:29:18 +01:00
Relax MIUI backup/restore warning
This commit is contained in:
parent
c42d517f6b
commit
0e4ce0f1ae
@ -65,7 +65,6 @@ class SettingsBackupController : SettingsController() {
|
|||||||
onClick {
|
onClick {
|
||||||
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
|
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
|
||||||
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
|
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
|
||||||
return@onClick
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BackupCreateService.isRunning(context)) {
|
if (!BackupCreateService.isRunning(context)) {
|
||||||
@ -85,7 +84,6 @@ class SettingsBackupController : SettingsController() {
|
|||||||
onClick {
|
onClick {
|
||||||
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
|
if (MiuiUtil.isMiui() && MiuiUtil.isMiuiOptimizationDisabled()) {
|
||||||
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
|
context.toast(R.string.restore_miui_warning, Toast.LENGTH_LONG)
|
||||||
return@onClick
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BackupRestoreService.isRunning(context)) {
|
if (!BackupRestoreService.isRunning(context)) {
|
||||||
|
@ -421,7 +421,7 @@
|
|||||||
<string name="backup_choice">What do you want to backup?</string>
|
<string name="backup_choice">What do you want to backup?</string>
|
||||||
<string name="creating_backup">Creating backup</string>
|
<string name="creating_backup">Creating backup</string>
|
||||||
<string name="creating_backup_error">Backup failed</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="restore_in_progress">Restore is already in progress</string>
|
||||||
<string name="restoring_backup">Restoring backup</string>
|
<string name="restoring_backup">Restoring backup</string>
|
||||||
<string name="restoring_backup_error">Restoring backup failed</string>
|
<string name="restoring_backup_error">Restoring backup failed</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user