summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorSebastian Franco <fransebas@google.com>2023-05-08 10:04:44 -0600
committerSebastian Franco <fransebas@google.com>2023-05-18 14:47:47 -0700
commit96c46e7fbaa296bcfe8b0f2ec78a002e9ea9243b (patch)
treef9834db8dcae583bd5548418a76c32cb8afe1d1a /src/com/android/launcher3/CellLayout.java
parent2e17bcaa0b1371f1a65763d03197b2b007de96ed (diff)
downloadLauncher3-96c46e7fbaa296bcfe8b0f2ec78a002e9ea9243b.tar.gz
Add seam space for performReorder in MultipageCellLayout
In the other method createAreaForResize we add 1 to the cellX to account for the seam in the Multipace CellLayout but we don't account for that on performReorder and we need to add a cellWidth Also, some methods are not running when the seam is added so their result are wrong. Now all methods are being accounted for. Fix: 277709417 Test: atest ReorderAlgorithm Test: atest MulticellReorderAlgorithm Change-Id: I7a4ca55f7b9cd7cf94481c880fe152e0a3bb3cf3
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index 5163ede509..75c1da01fe 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -1269,7 +1269,7 @@ public class CellLayout extends ViewGroup {
* @return The X, Y cell of a vacant area that can contain this object,
* nearest the requested location.
*/
- private int[] findNearestArea(int relativeXPos, int relativeYPos, int minSpanX, int minSpanY,
+ protected int[] findNearestArea(int relativeXPos, int relativeYPos, int minSpanX, int minSpanY,
int spanX, int spanY, boolean ignoreOccupied, int[] result, int[] resultSpan) {
// For items with a spanX / spanY > 1, the passed in point (relativeXPos, relativeYPos)
// corresponds to the center of the item, but we are searching based on the top-left cell,