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

Skip to content
Commit 8621f658 authored by Ats Jenk's avatar Ats Jenk
Browse files

Always collapse expanded view when dragging a bubble from bubble bar

Previously we only collapsed the expanded view when the expanded bubble
was being dragged. This caused issues with the bubble bar reposition
logic. The expanded view got detached from the the bubble bar when the
bar moved to the other side.
Update the drag logic to always collapse the expanded view when any
bubble is dragged. When drag stops, expand the previously expanded
bubble again.

Bug: 330585402
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Test: atest BubblesTest
Test: check that expanded bubble collapses during drag
  - have 2 bubbles in the bubble bar (A, B)
  - select and expand bubble A
  - start dragging bubble B
  - bubble A should collapse
  - release bubble B
  - bubble A should expand again
Test: check that selected bubble expands after a bubble is dismissed
  - have 2 bubbles in the bubble bar (A, B)
  - select and expand bubble A
  - dismiss bubble B by dragging it to dismiss target
  - bubble A should expand

Change-Id: I5fc47461c1e857073c260c146f924fb444b39e45
parent f16e8ea2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment