Merge "Drag and drop preview size for BubbleTextView" into ub-launcher3-qt-future-dev

am: ecee887d1a

Change-Id: I546cfa34058c3dff49ebef4ddc24c0fb8ef0d77d
This commit is contained in:
Samuel Fufa
2019-09-26 12:49:21 -07:00
committed by android-build-merger
3 changed files with 10 additions and 2 deletions

View File

@@ -1496,7 +1496,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
Rect dragRect = null;
if (child instanceof BubbleTextView) {
dragRect = new Rect();
((BubbleTextView) child).getIconBounds(dragRect);
BubbleTextView.getIconBounds(child, dragRect, grid.iconSizePx);
dragLayerY += dragRect.top;
// Note: The dragRect is used to calculate drag layer offsets, but the
// dragVisualizeOffset in addition to the dragRect (the size) to position the outline.