Fixed a NP when clearing notifications

The clipbounds could be null sometimes

Change-Id: I5a8e9ca3cdd8d58d350779a9afdbed6df9ad6062
Fixes: 68848476
Test: manual
This commit is contained in:
Selim Cinek
2017-11-06 14:46:48 -08:00
parent 404f810355
commit e5832ee9fa

View File

@@ -3065,7 +3065,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