Fix NPE in NotificationRow

Fixes: 171461675
Test: SystemUITests
Change-Id: Iff04960d33f12abd203daa2ce519ba2ccae84f01
This commit is contained in:
Jeff DeCew
2020-10-22 12:29:40 -04:00
parent 617a0256ad
commit b851fee857

View File

@@ -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;
}