From 3719856f0edec2ea8463ab535a4df11438e38e80 Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 27 Aug 2023 08:57:16 +0200 Subject: [PATCH] Revert "Make keep Num Backups a static Config variable" This reverts commit a0a34be22ba0f8f50d5b77e56de7e3651961c547. --- .../eu/siacs/conversations/services/ExportBackupService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/services/ExportBackupService.java b/src/main/java/eu/siacs/conversations/services/ExportBackupService.java index e60c8a40d..2d9407202 100644 --- a/src/main/java/eu/siacs/conversations/services/ExportBackupService.java +++ b/src/main/java/eu/siacs/conversations/services/ExportBackupService.java @@ -431,7 +431,7 @@ public class ExportBackupService extends Service { // Needed to lookup up the number of files to keep during backup file rotation SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); - final Integer keepNumBackups = Integer.parseInt(pref.getString("keep_num_backups", Config.KEEP_DEFAULT_MAX_BACKUPS)); + final Integer keepNumBackups = Integer.parseInt(pref.getString("keep_num_backups", "3")); for (final Account account : this.mAccounts) { try { @@ -511,7 +511,7 @@ public class ExportBackupService extends Service { success = true; if(success) { - final Integer keepNumBackups = Integer.parseInt(pref.getString("keep_num_backups", Config.KEEP_DEFAULT_MAX_BACKUPS)); + final Integer keepNumBackups = Integer.parseInt(pref.getString("keep_num_backups", "3")); rotateBackups(keepNumBackups,"settings"); }