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

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

Merge "Fix possible NPE" into sc-v2-dev

parents f3a504e3 0be1b45d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -231,8 +231,9 @@ public class BubbleFlyoutView extends FrameLayout {
     * Fade animation for consecutive flyouts.
     */
    void animateUpdate(Bubble.FlyoutMessage flyoutMessage, PointF stackPos,
            boolean hideDot, Runnable onHide) {
            boolean hideDot, float[] dotCenter, Runnable onHide) {
        mOnHide = onHide;
        mDotCenter = dotCenter;
        final Runnable afterFadeOut = () -> {
            updateFlyoutMessage(flyoutMessage);
            // Wait for TextViews to layout with updated height.
+1 −0
Original line number Diff line number Diff line
@@ -2494,6 +2494,7 @@ public class BubbleStackView extends FrameLayout
            if (mFlyout.getVisibility() == View.VISIBLE) {
                mFlyout.animateUpdate(bubble.getFlyoutMessage(),
                        mStackAnimationController.getStackPosition(), !bubble.showDot(),
                        bubble.getIconView().getDotCenter(),
                        mAfterFlyoutHidden /* onHide */);
            } else {
                mFlyout.setVisibility(INVISIBLE);