Fixed a NP when clearing notifications
The clipbounds could be null sometimes Change-Id: I5a8e9ca3cdd8d58d350779a9afdbed6df9ad6062 Fixes: 68848476 Test: manual
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user