From 8a3333ef302b76ff966ddc3fad9992228113fc7f Mon Sep 17 00:00:00 2001 From: mpodolian Date: Tue, 18 Feb 2025 17:55:02 -0800 Subject: Fixed the bubble bar drop zone height calculation. Updated the calculation for the bubble bar drop zone height. Bug: 396476450 Flag: com.android.wm.shell.enable_create_any_bubble Test: Manual. Drag an app icon from the taskbar over the bubble bar drop zone until the drop target appears. Drag the icon up out of the drop zone; the drop target disappears. Change-Id: Idcb6e45ee1328fa76ee24d9354769764c51601b3 --- .../Shell/src/com/android/wm/shell/bubbles/BubbleController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java index 66abcabed109..6b8c2360e02f 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java @@ -887,7 +887,7 @@ public class BubbleController implements ConfigurationChangeListener, // TODO(b/393172431) : Utilise DragZoneFactory once it is ready final int bubbleBarDropZoneSideSize = getContext().getResources().getDimensionPixelSize( R.dimen.bubble_bar_drop_zone_side_size); - int top = t - bubbleBarDropZoneSideSize; + int top = b - bubbleBarDropZoneSideSize; result.put(BubbleBarLocation.LEFT, new Rect(l, top, l + bubbleBarDropZoneSideSize, b)); result.put(BubbleBarLocation.RIGHT, -- cgit v1.2.3-59-g8ed1b