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

This commit is contained in:
Sebastián Franco authored and Android (Google) Code Review committed 2022-12-16 22:43:09 +00:00
commit 791c9dbf8d
1 file changed
+2
@@ -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();