Skip to content

Commit

Permalink
Create automatic backups only every 3 days, update summary (AntennaPo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster authored Mar 20, 2024
1 parent 4bc9089 commit 542d50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void enqueueIfNeeded(Context context, boolean replace) {
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);
Expand Down
2 changes: 1 addition & 1 deletion ui/i18n/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 542d50c

Please sign in to comment.