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

Commit 4790fc2b authored by Mykola Podolian's avatar Mykola Podolian Committed by Android (Google) Code Review
Browse files

Merge "Fixed bubble bar expanded view bounds on rotation." into main

parents 15a7e289 1a7706f0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2404,7 +2404,10 @@ public class BubbleController implements ConfigurationChangeListener,

        @Override
        public void setBubbleBarBounds(Rect bubbleBarBounds) {
            mMainExecutor.execute(() -> mBubblePositioner.setBubbleBarBounds(bubbleBarBounds));
            mMainExecutor.execute(() -> {
                mBubblePositioner.setBubbleBarBounds(bubbleBarBounds);
                if (mLayerView != null) mLayerView.updateExpandedView();
            });
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -356,7 +356,7 @@ public class BubbleBarLayerView extends FrameLayout
    }

    /** Updates the expanded view size and position. */
    private void updateExpandedView() {
    public void updateExpandedView() {
        if (mExpandedView == null || mExpandedBubble == null) return;
        boolean isOverflowExpanded = mExpandedBubble.getKey().equals(BubbleOverflow.KEY);
        mPositioner.getBubbleBarExpandedViewBounds(mPositioner.isBubbleBarOnLeft(),