Fix NPE in NotificationRow
Fixes: 171461675 Test: SystemUITests Change-Id: Iff04960d33f12abd203daa2ce519ba2ccae84f01
This commit is contained in:
@@ -2856,7 +2856,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
}
|
||||
float x = event.getX();
|
||||
float y = event.getY();
|
||||
NotificationHeaderView header = getVisibleNotificationViewWrapper().getNotificationHeader();
|
||||
NotificationViewWrapper wrapper = getVisibleNotificationViewWrapper();
|
||||
NotificationHeaderView header = wrapper == null ? null : wrapper.getNotificationHeader();
|
||||
if (header != null && header.isInTouchRect(x - getTranslation(), y)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user