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

Commit 1d8f44e8 authored by Liran Binyamin's avatar Liran Binyamin Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when reordering overflow" into main

parents b9bb72c8 f7691ac3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1644,8 +1644,12 @@ public class BubbleStackView extends FrameLayout
                if (parent != null && parent != mBubbleContainer) {
                    Log.w(TAG, "Found an unexpected parent for the overflow icon before "
                            + "reordering. Removing it directly. Parent = " + parent);
                    if (parent instanceof PhysicsAnimationLayout) {
                        ((PhysicsAnimationLayout) parent).removeViewNoAnimation(overflow);
                    } else {
                        parent.removeView(overflow);
                    }
                }
                mBubbleContainer.reorderView(overflow,
                        mBubbleContainer.getChildCount() - 1 /* index */);
            }