Merge "Fix issue where the solution is not updated when the grid is empty" into tm-qpr-dev am: 6322cb2e61
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20512199 Change-Id: If5ac96d72dbc287445bb35d1eb7f418852f97365 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2385,6 +2385,9 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
ItemInfo item = d.dragInfo;
|
||||
final View child = (mDragInfo == null) ? null : mDragInfo.cell;
|
||||
if (!nearestDropOccupied) {
|
||||
mDragTargetLayout.performReorder((int) mDragViewVisualCenter[0],
|
||||
(int) mDragViewVisualCenter[1], minSpanX, minSpanY, item.spanX, item.spanY,
|
||||
child, mTargetCell, new int[2], CellLayout.MODE_SHOW_REORDER_HINT);
|
||||
mDragTargetLayout.visualizeDropLocation(mTargetCell[0], mTargetCell[1],
|
||||
item.spanX, item.spanY, d);
|
||||
} else if ((mDragMode == DRAG_MODE_NONE || mDragMode == DRAG_MODE_REORDER)
|
||||
|
||||
Reference in New Issue
Block a user