Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 273d8168 authored by mpodolian's avatar mpodolian
Browse files

Cancel drag and drop if drag is canceled.

Flag: com.android.wm.shell.enable_create_any_bubble
Test: Manual. Drag icon out of any drop zone.
Bug: 399678274
Change-Id: I2a83f0407bfd10395f434d830770cc46a02e36f8
parent 9a6b6d10
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -663,6 +663,9 @@ public class DragLayout extends LinearLayout
                    mSession = null;
            }
        });
        // notify bubbles of drag cancel
        mCurrentBubbleBarTarget = null;
        mBubbleBarDragListener.onItemDraggedOutsideBubbleBarDropZone();
        // Reset the state if we previously force-ignore the bottom margin
        mDropZoneView1.setForceIgnoreBottomMargin(false);
        mDropZoneView2.setForceIgnoreBottomMargin(false);