Merge "Fixed a NP when clearing notifications"

This commit is contained in:
TreeHugger Robot
2017-11-10 22:25:28 +00:00
committed by Android (Google) Code Review

View File

@@ -3066,7 +3066,7 @@ public class NotificationStackScrollLayout extends ViewGroup
}
if (!childWasSwipedOut) {
Rect clipBounds = child.getClipBounds();
childWasSwipedOut = clipBounds.height() == 0;
childWasSwipedOut = clipBounds != null && clipBounds.height() == 0;
}
int animationType = childWasSwipedOut
? AnimationEvent.ANIMATION_TYPE_REMOVE_SWIPED_OUT