Merge "Don't modify invariant device profile" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca902dc757
@@ -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(() -> {
|
||||
|
||||
Reference in New Issue
Block a user