Loading aconfig/launcher.aconfig +4 −2 Original line number Diff line number Diff line Loading @@ -188,19 +188,21 @@ flag { } flag { name: "grid_migration_fix" name: "enable_grid_migration_fix" namespace: "launcher" description: "Keep items in place when migrating to a bigger grid" bug: "325286145" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "narrow_grid_restore" name: "enable_narrow_grid_restore" namespace: "launcher" description: "Using only the most recent workspace when restoring to avoid confusion." is_fixed_read_only: true bug: "325285743" metadata { purpose: PURPOSE_BUGFIX Loading src/com/android/launcher3/model/GridSizeMigrationUtil.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading src/com/android/launcher3/provider/RestoreDbTask.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading tests/src/com/android/launcher3/backuprestore/BackupAndRestoreDBSelectionTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ class BackupAndRestoreDBSelectionTest { @Before fun setUp() { setFlagsRule.setFlags(true, Flags.FLAG_NARROW_GRID_RESTORE) setFlagsRule.setFlags(true, Flags.FLAG_ENABLE_NARROW_GRID_RESTORE) } @Test Loading tests/src/com/android/launcher3/model/GridMigrationTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ class GridMigrationTest { @Before fun setup() { setFlagsRule.setFlags(false, Flags.FLAG_GRID_MIGRATION_FIX) setFlagsRule.setFlags(false, Flags.FLAG_ENABLE_GRID_MIGRATION_FIX) } private fun migrate(src: GridMigrationData, dst: GridMigrationData) { Loading Loading @@ -223,7 +223,7 @@ class GridMigrationTest { @Test fun `flagged 5x5 to 5x8`() { setFlagsRule.setFlags(true, Flags.FLAG_GRID_MIGRATION_FIX) setFlagsRule.setFlags(true, Flags.FLAG_ENABLE_GRID_MIGRATION_FIX) runTest( src = GridMigrationData(DB_FILE, DeviceGridState(5, 5, 5, TYPE_PHONE, DB_FILE)), dst = Loading Loading
aconfig/launcher.aconfig +4 −2 Original line number Diff line number Diff line Loading @@ -188,19 +188,21 @@ flag { } flag { name: "grid_migration_fix" name: "enable_grid_migration_fix" namespace: "launcher" description: "Keep items in place when migrating to a bigger grid" bug: "325286145" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "narrow_grid_restore" name: "enable_narrow_grid_restore" namespace: "launcher" description: "Using only the most recent workspace when restoring to avoid confusion." is_fixed_read_only: true bug: "325285743" metadata { purpose: PURPOSE_BUGFIX Loading
src/com/android/launcher3/model/GridSizeMigrationUtil.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
src/com/android/launcher3/provider/RestoreDbTask.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading
tests/src/com/android/launcher3/backuprestore/BackupAndRestoreDBSelectionTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ class BackupAndRestoreDBSelectionTest { @Before fun setUp() { setFlagsRule.setFlags(true, Flags.FLAG_NARROW_GRID_RESTORE) setFlagsRule.setFlags(true, Flags.FLAG_ENABLE_NARROW_GRID_RESTORE) } @Test Loading
tests/src/com/android/launcher3/model/GridMigrationTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ class GridMigrationTest { @Before fun setup() { setFlagsRule.setFlags(false, Flags.FLAG_GRID_MIGRATION_FIX) setFlagsRule.setFlags(false, Flags.FLAG_ENABLE_GRID_MIGRATION_FIX) } private fun migrate(src: GridMigrationData, dst: GridMigrationData) { Loading Loading @@ -223,7 +223,7 @@ class GridMigrationTest { @Test fun `flagged 5x5 to 5x8`() { setFlagsRule.setFlags(true, Flags.FLAG_GRID_MIGRATION_FIX) setFlagsRule.setFlags(true, Flags.FLAG_ENABLE_GRID_MIGRATION_FIX) runTest( src = GridMigrationData(DB_FILE, DeviceGridState(5, 5, 5, TYPE_PHONE, DB_FILE)), dst = Loading