Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a0516f6 authored by Adam Cohen's avatar Adam Cohen Committed by Automerger Merge Worker
Browse files

Fix widget drop preview outline on 4x5 grids am: ed82e0da

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15351419

Change-Id: I37f0cde316ac0a4c7b793ad25b23d5208ca90b65
parents 1800f916 ed82e0da
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -566,9 +566,10 @@ public class CellLayout extends ViewGroup {
                int spanX = mDragOutlines[i].cellHSpan;
                int spanY = mDragOutlines[i].cellVSpan;

                // TODO b/194414754 clean this up, reconcile with cellToRect
                mVisualizeGridRect.set(paddingX, paddingY,
                        mCellWidth * spanX - paddingX,
                        mCellHeight * spanY - paddingY);
                        mCellWidth * spanX + mBorderSpacing * (spanX - 1) - paddingX,
                        mCellHeight * spanY + mBorderSpacing * (spanY - 1) - paddingY);

                int transX = x * mCellWidth + (x * mBorderSpacing)
                        + getPaddingLeft() + paddingX;