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

Commit 5715cb74 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Fix an issue where animated the bubble bar twice from bubble button" into main

parents 1ebffc49 2a235a99
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1241,8 +1241,9 @@ public class BubbleController implements ConfigurationChangeListener,
            mBubbleData.dismissBubbleWithKey(
                    bubbleKey, Bubbles.DISMISS_USER_GESTURE_FROM_LAUNCHER, timestamp);
        }
        if (selectedBubbleKey != null && !selectedBubbleKey.equals(bubbleKey)) {
            // We did not remove the selected bubble. Expand it again
        if (mBubbleData.hasBubbles()) {
            // We still have bubbles, if we dragged an individual bubble to dismiss we were expanded
            // so re-expand to whatever is selected.
            showExpandedViewForBubbleBar();
        }
    }
@@ -2007,7 +2008,7 @@ public class BubbleController implements ConfigurationChangeListener,
        @Override
        public void selectionChanged(BubbleViewProvider selectedBubble) {
            // Only need to update the layer view if we're currently expanded for selection changes.
            if (mLayerView != null && isStackExpanded()) {
            if (mLayerView != null && mLayerView.isExpanded()) {
                mLayerView.showExpandedView(selectedBubble);
            }
        }
+4 −0
Original line number Diff line number Diff line
@@ -186,6 +186,10 @@ public class BubbleBarLayerView extends FrameLayout
        if (expandedView == null) {
            return;
        }
        if (mExpandedBubble != null && mIsExpanded && b.getKey().equals(mExpandedBubble.getKey())) {
            // Already showing this bubble, skip animating
            return;
        }
        if (mExpandedBubble != null && !b.getKey().equals(mExpandedBubble.getKey())) {
            removeView(mExpandedView);
            mExpandedView = null;