Drag and drop preview size for BubbleTextView

Test:Manual
Bug:141260670,141263002
Change-Id: If08dba28cce3ae07bb39ddad3743dd5eea92cb90
This commit is contained in:
Samuel Fufa committed 2019-09-26 12:21:45 -07:00
1 parent c50fe371b1
commit 45812a9ed6
3 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -1493,7 +1493,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.