Ver Fonte

Add some info about automatic backups

arkon há 3 anos atrás
pai
commit
b8d8cf19d9

+ 3 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt

@@ -29,6 +29,7 @@ import eu.kanade.tachiyomi.ui.base.controller.DialogController
 import eu.kanade.tachiyomi.ui.base.controller.requestPermissionsSafe
 import eu.kanade.tachiyomi.util.preference.defaultValue
 import eu.kanade.tachiyomi.util.preference.entriesRes
+import eu.kanade.tachiyomi.util.preference.infoPreference
 import eu.kanade.tachiyomi.util.preference.intListPreference
 import eu.kanade.tachiyomi.util.preference.onChange
 import eu.kanade.tachiyomi.util.preference.onClick
@@ -159,6 +160,8 @@ class SettingsBackupController : SettingsController() {
                     .launchIn(viewScope)
             }
         }
+
+        infoPreference(R.string.backup_info)
     }
 
     override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {

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

@@ -449,6 +449,7 @@
     <string name="restoring_backup">Restoring backup</string>
     <string name="restoring_backup_error">Restoring backup failed</string>
     <string name="restoring_backup_canceled">Canceled restore</string>
+    <string name="backup_info">Automatic backups are highly recommended. You should keep copies in other places as well.</string>
 
       <!-- Advanced section -->
     <string name="label_network">Network</string>