Revert "Make keep Num Backups a static Config variable"

This reverts commit a0a34be22b.
This commit is contained in:
Arne 2023-08-27 08:57:16 +02:00
parent aa63e872b4
commit 3719856f0e

View file

@ -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");
}