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

This commit is contained in:
Mady Mellor
2021-09-23 14:40:12 +00:00
committed by Android (Google) Code Review

View File

@@ -968,7 +968,7 @@ public class BubbleStackView extends FrameLayout
} }
}); });
mExpandedViewAlphaAnimator.addUpdateListener(valueAnimator -> { mExpandedViewAlphaAnimator.addUpdateListener(valueAnimator -> {
if (mExpandedBubble != null) { if (mExpandedBubble != null && mExpandedBubble.getExpandedView() != null) {
mExpandedBubble.getExpandedView().setTaskViewAlpha( mExpandedBubble.getExpandedView().setTaskViewAlpha(
(float) valueAnimator.getAnimatedValue()); (float) valueAnimator.getAnimatedValue());
} }