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

Commit 141b5e79 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when opening bubble overflow" into rvc-dev

parents aa625885 0122cc90
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,11 +62,12 @@ public class BubbleOverflow implements BubbleViewProvider {
                R.dimen.bubble_overflow_icon_bitmap_size);
    }

    public void setUpOverflow(ViewGroup parentViewGroup) {
    void setUpOverflow(ViewGroup parentViewGroup, BubbleStackView stackView) {
        mOverflowExpandedView = (BubbleExpandedView) mInflater.inflate(
                R.layout.bubble_expanded_view, parentViewGroup /* root */,
                false /* attachToRoot */);
        mOverflowExpandedView.setOverflow(true);
        mOverflowExpandedView.setStackView(stackView);

        updateIcon(mContext, parentViewGroup);
    }
+2 −2
Original line number Diff line number Diff line
@@ -522,8 +522,8 @@ public class BubbleStackView extends FrameLayout {
    private void setUpOverflow() {
        int overflowBtnIndex = 0;
        if (mBubbleOverflow == null) {
            mBubbleOverflow = new BubbleOverflow(mContext);
            mBubbleOverflow.setUpOverflow(this);
            mBubbleOverflow = new BubbleOverflow(getContext());
            mBubbleOverflow.setUpOverflow(mBubbleContainer, this);
        } else {
            mBubbleContainer.removeView(mBubbleOverflow.getBtn());
            mBubbleOverflow.updateIcon(mContext, this);