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

Commit 9dc38ec2 authored by Lyn Han's avatar Lyn Han
Browse files

Show bubble by default when stack expands

Fixes: 155486743
Test: manual
- Select overflow, collapse stack, expand stack -> previously selected
bubble is selected
- Select middle bubble, collapse stack, expand stack -> bubble now first
- Select first bubble, collapse stack, expand stack -> first bubble
still selected

Change-Id: Ie287274abd520219311288ba5d3492dae4b45b9e
parent 1cf3ce8f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -454,7 +454,6 @@ public class BubbleStackView extends FrameLayout
                    // that means overflow was previously expanded. Set the selected bubble
                    // internally without going through BubbleData (which would ignore it since it's
                    // already selected).
                    mBubbleData.setShowingOverflow(true);
                    setSelectedBubble(clickedBubble);
                }
            } else {
@@ -1342,7 +1341,10 @@ public class BubbleStackView extends FrameLayout
        }
        if (bubbleToSelect == null || bubbleToSelect.getKey() != BubbleOverflow.KEY) {
            mBubbleData.setShowingOverflow(false);
        } else {
            mBubbleData.setShowingOverflow(true);
        }

        final BubbleViewProvider previouslySelected = mExpandedBubble;
        mExpandedBubble = bubbleToSelect;
        updatePointerPosition();