Merge "Making 2 flags read only since they are used on backup and restore" into main

This commit is contained in:
Sebastián Franco
2024-03-14 20:12:05 +00:00
committed by Android (Google) Code Review
5 changed files with 9 additions and 7 deletions
@@ -124,7 +124,7 @@ public class GridSizeMigrationUtil {
return true;
}
if (Flags.gridMigrationFix()
if (Flags.enableGridMigrationFix()
&& srcDeviceState.getColumns().equals(destDeviceState.getColumns())
&& srcDeviceState.getRows() < destDeviceState.getRows()) {
// Only use this strategy when comparing the previous grid to the new grid and the
@@ -123,7 +123,7 @@ public class RestoreDbTask {
// executed again.
LauncherPrefs.get(context).removeSync(RESTORE_DEVICE);
if (Flags.narrowGridRestore()) {
if (Flags.enableNarrowGridRestore()) {
String oldPhoneFileName = idp.dbFile;
removeOldDBs(context, oldPhoneFileName);
trySettingPreviousGidAsCurrent(context, idp, oldPhoneFileName);