Workspace migration should start from CellY = 1
Test: Manual Fixes: 155828336 Change-Id: Ic262f63e5e9dc0a5738f71a84dc5cc8b0cefd321
This commit is contained in:
parent
e34b183547
commit
51e33e187b
|
@ -384,7 +384,7 @@ public class GridSizeMigrationTaskV2 {
|
|||
* to speed up the search.
|
||||
*/
|
||||
private boolean findPlacement(DbEntry entry) {
|
||||
for (int y = mNextStartY; y >= 0; y--) {
|
||||
for (int y = mNextStartY; y > 0; y--) {
|
||||
for (int x = mNextStartX; x < mTrgX; x++) {
|
||||
boolean fits = mOccupied.isRegionVacant(x, y, entry.spanX, entry.spanY);
|
||||
boolean minFits = mOccupied.isRegionVacant(x, y, entry.minSpanX,
|
||||
|
|
Loading…
Reference in New Issue