Merge "Fix possible NPE" into sc-v2-dev am: a7efb5e025 am: e8d06b9c83

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15881361

Change-Id: I2f7b291a451ecc091838e26ad7e81f4f52cf3279
This commit is contained in:
Mady Mellor
2021-09-23 15:07:06 +00:00
committed by Automerger Merge Worker

View File

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