Merge "Update UsageStatsDatabase#KEEP_BACKUP_DIR." into rvc-dev am: cd2b3babc7 am: ac0dd9d345
Change-Id: I283611a0f34673f9c934df1089d29a31d862f21e
This commit is contained in:
@@ -98,8 +98,7 @@ public class UsageStatsDatabase {
|
||||
|
||||
// Persist versioned backup files.
|
||||
// Should be false, except when testing new versions
|
||||
// STOPSHIP: b/139937606 this should be false on launch
|
||||
static final boolean KEEP_BACKUP_DIR = true;
|
||||
static final boolean KEEP_BACKUP_DIR = false;
|
||||
|
||||
private static final String TAG = "UsageStatsDatabase";
|
||||
private static final boolean DEBUG = UsageStatsService.DEBUG;
|
||||
@@ -412,6 +411,7 @@ public class UsageStatsDatabase {
|
||||
}
|
||||
|
||||
if (mBackupsDir.exists() && !KEEP_BACKUP_DIR) {
|
||||
mUpgradePerformed = true; // updated here to ensure that data is cleaned up
|
||||
deleteDirectory(mBackupsDir);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user