Create automatic backups only every 3 days, update summary (#7005)
This commit is contained in:
parent
4bc90897b6
commit
542d50cba7
|
@ -41,7 +41,7 @@ public class AutomaticDatabaseExportWorker extends Worker {
|
|||
WorkManager.getInstance(context).cancelUniqueWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT);
|
||||
} else {
|
||||
PeriodicWorkRequest workRequest = new PeriodicWorkRequest.Builder(
|
||||
AutomaticDatabaseExportWorker.class, 1, TimeUnit.DAYS)
|
||||
AutomaticDatabaseExportWorker.class, 3, TimeUnit.DAYS)
|
||||
.build();
|
||||
WorkManager.getInstance(context).enqueueUniquePeriodicWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT,
|
||||
replace ? ExistingPeriodicWorkPolicy.REPLACE : ExistingPeriodicWorkPolicy.KEEP, workRequest);
|
||||
|
|
|
@ -580,7 +580,7 @@
|
|||
<string name="html_export_label">HTML export</string>
|
||||
<string name="database_export_label">Database export</string>
|
||||
<string name="automatic_database_export_label">Automatic database export</string>
|
||||
<string name="automatic_database_export_summary">Automatically create daily backups of the AntennaPod database</string>
|
||||
<string name="automatic_database_export_summary">Create a backup of the AntennaPod database every 3 days. Only keep the 5 most recent backups.</string>
|
||||
<string name="automatic_database_export_error">Error during automatic database backup</string>
|
||||
<string name="database_import_label">Database import</string>
|
||||
<string name="database_import_warning">Importing a database will replace all of your current subscriptions and playing history. You should export your current database as a backup. Do you want to replace?</string>
|
||||
|
|
Loading…
Reference in New Issue