From 2b0efdb621ed305b47ec01e79222635b914c1f68 Mon Sep 17 00:00:00 2001 From: Ats Jenk Date: Tue, 28 May 2024 16:37:06 -0700 Subject: [PATCH] Notify pin controller about stuck to dismiss Based on changes to the base controller we now only need to notify when a dragged item is stuck to the dismiss view. Bug: 339659499 Test: manual Flag: com.android.wm.shell.enable_bubble_bar Change-Id: I82c5c4946b955b06cfba91179931e690d0591107 --- .../launcher3/taskbar/bubbles/BubbleDragController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java index 2ebc3e84c4..e04c1b1020 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleDragController.java @@ -62,8 +62,10 @@ public class BubbleDragController { mBubblePinController = bubbleControllers.bubblePinController; mBubbleDismissController.setListener( stuck -> { - mBubbleBarPinController.setDropTargetHidden(stuck); - mBubblePinController.setDropTargetHidden(stuck); + if (stuck) { + mBubbleBarPinController.onStuckToDismissTarget(); + mBubblePinController.onStuckToDismissTarget(); + } }); }