Revert "Reorder widgets no longer overlaps when no space is avai..."

Revert "Reorder widgets no longer overlaps when no space is avai..."

Revert submission 20427045-258023561

Reason for revert: Likely causing NPE while running launcher shortcut tests (Part of DM+Platinum monitor rotation. The revert won't be submitted if proven otherwise)

Bug: 259234533
Reverted Changes:
Ie599f7cb7:Reorder widgets no longer overlaps when no space i...
I04b262ecc:Reorder widgets no longer overlaps when no space i...

Change-Id: I4cc552588c8099356bc3f05c4c63d17a524f2a24
This commit is contained in:
Sam Dubey committed 2022-11-15 13:24:19 +00:00
1 parent 893615f241
commit 3dad4fec9f
3 files changed
+21 -35

No files matched your search

+2 -1
View File
@@ -2615,6 +2615,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
setDragMode(DRAG_MODE_REORDER);
}
boolean resize = resultSpan[0] != spanX || resultSpan[1] != spanY;
mDragTargetLayout.visualizeDropLocation(mTargetCell[0], mTargetCell[1],
resultSpan[0], resultSpan[1], dragObject);
}
@@ -2971,7 +2972,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
*/
@Thunk int[] findNearestArea(int pixelX, int pixelY,
int spanX, int spanY, CellLayout layout, int[] recycle) {
return layout.findNearestAreaIgnoreOccupied(
return layout.findNearestArea(
pixelX, pixelY, spanX, spanY, recycle);
}