forked from mirror/monocles_chat_clean
Revert "Make keep Num Backups a static Config variable"
This reverts commit a0a34be22b
.
This commit is contained in:
parent
aa63e872b4
commit
3719856f0e
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue