Workaround: don't migrate grid when hotseat size or device type changes in multi display

Bug: 198965093
Test: manual
Change-Id: I804ec854b98d27717c32723028f892ca2556d327
This commit is contained in:
Alex Chau
2021-09-20 12:11:12 +01:00
parent 5b4934f05d
commit e35ef91c3e
2 changed files with 16 additions and 4 deletions

View File

@@ -106,9 +106,11 @@ public class GridSizeMigrationTaskV2 {
DeviceGridState idpGridState = new DeviceGridState(idp);
DeviceGridState contextGridState = new DeviceGridState(context);
boolean needsToMigrate = !idpGridState.isCompatible(contextGridState);
// TODO: Revert this change after b/200010396 is fixed
Log.d(TAG, "Migration is needed. idpGridState: " + idpGridState
+ ", contextGridState: " + contextGridState);
// TODO(b/198965093): Revert this change after bug is fixed
if (needsToMigrate) {
Log.d("b/198965093", "Migration is needed. idpGridState: " + idpGridState
+ ", contextGridState: " + contextGridState);
}
return needsToMigrate;
}