Merge "Clean mPreviousSolution on change of CellLayout target" into tm-qpr-dev

This commit is contained in:
Sebastián Franco
2022-12-16 22:43:09 +00:00
committed by Android (Google) Code Review
@@ -2716,6 +2716,7 @@ public class CellLayout extends ViewGroup {
*/
void onDragEnter() {
mDragging = true;
mPreviousSolution = null;
}
/**
@@ -2730,6 +2731,7 @@ public class CellLayout extends ViewGroup {
}
// Invalidate the drag data
mPreviousSolution = null;
mDragCell[0] = mDragCell[1] = -1;
mDragCellSpan[0] = mDragCellSpan[1] = -1;
mDragOutlineAnims[mDragOutlineCurrent].animateOut();