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

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

Merge "Check that a bubble exists before reordering it" into udc-qpr-dev

parents 9c8423f7 36325fd9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -306,7 +306,10 @@ public class BubbleBarView extends FrameLayout {
        if (!isExpanded()) {
            for (int i = 0; i < viewOrder.size(); i++) {
                View child = viewOrder.get(i);
                if (child != null) {
                // this child view may have already been removed so verify that it still exists
                // before reordering it, otherwise it will be re-added.
                int indexOfChild = indexOfChild(child);
                if (child != null && indexOfChild >= 0) {
                    removeViewInLayout(child);
                    addViewInLayout(child, i, child.getLayoutParams());
                }