Merge "Don't modify invariant device profile" into main

This commit is contained in:
Treehugger Robot
2025-02-20 09:59:54 -08:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 4 deletions
@@ -313,7 +313,7 @@ public class InvariantDeviceProfile {
context,
gridName,
displayInfo,
RestoreDbTask.isPending(mPrefs),
(RestoreDbTask.isPending(mPrefs) && !Flags.oneGridSpecs()),
mPrefs.get(FIXED_LANDSCAPE_MODE)
);
@@ -506,6 +506,7 @@ public class InvariantDeviceProfile {
* Updates the current grid, this triggers a new IDP, reloads the database and triggers a grid
* migration.
*/
@VisibleForTesting
public void setCurrentGrid(Context context, String newGridName) {
mPrefs.put(GRID_NAME, newGridName);
MAIN_EXECUTOR.execute(() -> {