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

Commit 1a7706f0 authored by mpodolian's avatar mpodolian Committed by Mykola Podolian
Browse files

Fixed bubble bar expanded view bounds on rotation.

Updated bubble bar expanded view bounds after bubble bar bounds becomes
available.

Fixes: 339256366
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Test: Demo http://recall/-/gx8ASgewUeUS3QYohfrd1J/cVcqsi9JLjA16KcnD1I4lV
Change-Id: Id6144a8435c90fecb04555ae0b563f367334d86a
parent 61b0874b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2397,7 +2397,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(),