mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 06:31:47 +01:00
parent
2a178123c2
commit
372830b6d4
@ -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)) {
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user