Removed fly-back animation after a taskbar item drop on the bubble bar

Added logic to track whether the drop target handled the app icon drop,
in order to prevent the fly-back animation in those cases.

Bug: 397459664
Flag: com.android.wm.shell.enable_create_any_bubble
Test: Manual. Drop a taskbar icon onto the bubble bar. Observe that no
fly-back animation is performed for the dropped icon.

Change-Id: If439d7280fe9f713c181531ac899ac8ad37ed481
This commit is contained in:
mpodolian committed 2025-02-28 10:01:13 -08:00
1 parent c666b9587b
commit 672a32a18b
2 files changed
+5 -3

No files matched your search

@@ -145,7 +145,7 @@ public class BubbleBarViewController {
@Override
public void onLauncherItemDroppedOverBubbleBarDragZone(@NonNull BubbleBarLocation location,
@NonNull ItemInfo itemInfo) {
//TODO(b/397459664) : fix task bar icon animation after drop
//TODO(b/397459664) : fix drag interruption when there are no bubbles
//TODO(b/397459664) : update bubble bar location
ShortcutInfo shortcutInfo = null;
if (itemInfo instanceof WorkspaceItemInfo) {