diff --git a/src/com/android/launcher3/notification/NotificationItemView.java b/src/com/android/launcher3/notification/NotificationItemView.java index 639447dc3e..c9b3940b84 100644 --- a/src/com/android/launcher3/notification/NotificationItemView.java +++ b/src/com/android/launcher3/notification/NotificationItemView.java @@ -83,12 +83,20 @@ public class NotificationItemView extends PopupItemView implements LogContainerP @Override public boolean onInterceptTouchEvent(MotionEvent ev) { + if (mMainView.getNotificationInfo() == null) { + // The notification hasn't been populated yet. + return false; + } getParent().requestDisallowInterceptTouchEvent(true); return mSwipeHelper.onInterceptTouchEvent(ev); } @Override public boolean onTouchEvent(MotionEvent ev) { + if (mMainView.getNotificationInfo() == null) { + // The notification hasn't been populated yet. + return false; + } return mSwipeHelper.onTouchEvent(ev) || super.onTouchEvent(ev); }