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

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-02-20 09:59:54 -08:00
commit ca902dc757
2 files changed
+8 -4

No files matched your search

@@ -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(() -> {