Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51e33e18 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Workspace migration should start from CellY = 1

Test: Manual
Fixes: 155828336
Change-Id: Ic262f63e5e9dc0a5738f71a84dc5cc8b0cefd321
parent e34b1835
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,