Merge "Protect against NPE" into rvc-dev

This commit is contained in:
Lyn Han
2020-06-12 01:11:35 +00:00
committed by Android (Google) Code Review

View File

@@ -1780,6 +1780,9 @@ public class BubbleStackView extends FrameLayout
AnimatableScaleMatrix.getAnimatableValueForScaleFactor(1f),
mScaleInSpringConfig)
.addUpdateListener((target, values) -> {
if (mExpandedBubble.getIconView() == null) {
return;
}
mExpandedViewContainerMatrix.postTranslate(
mExpandedBubble.getIconView().getTranslationX()
- bubbleWillBeAtX,