Преглед на файлове

Add some info about automatic backups

arkon преди 3 години
родител
ревизия
b8d8cf19d9
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 3 0
      app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt
  2. 1 0
      app/src/main/res/values/strings.xml

+ 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>