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

Commit 6b77321e authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Protect against possible NPE" into main

parents 92378739 94ddf1f0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -769,9 +769,11 @@ public class StackAnimationController extends
        boolean swapped = false;
        for (int newIndex = 0; newIndex < bubbleViews.size(); newIndex++) {
            View view = bubbleViews.get(newIndex);
            if (view != null) {
                final int oldIndex = mLayout.indexOfChild(view);
                swapped |= animateSwap(view, oldIndex, newIndex, updateAllIcons, after);
            }
        }
        if (!swapped) {
            // All bubbles were at the right position. Make sure badges and z order is correct.
            updateAllIcons.run();