mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Don't modify invariant device profile
We flag guard the code that modifies IDP as that's not needed with one grid, and we don't want to modify idp outside of it Bug: 332974074 Flag: com.android.launcher3.one_grid_specs Test: verified manually with b&r Change-Id: Ica2ffa79638fa693cde421adb13feebb0d09cbc4
This commit is contained in:
@@ -312,7 +312,7 @@ public class InvariantDeviceProfile {
|
||||
context,
|
||||
gridName,
|
||||
displayInfo,
|
||||
RestoreDbTask.isPending(mPrefs),
|
||||
(RestoreDbTask.isPending(mPrefs) && !Flags.oneGridSpecs()),
|
||||
mPrefs.get(FIXED_LANDSCAPE_MODE)
|
||||
);
|
||||
|
||||
@@ -505,6 +505,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