Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Null check for the notification parent view (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed May 20, 2020
1 parent 9d4d1fd commit 5884370
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ public static void show(int notificationId, @NonNull Notification notification)
}

Runnable hideTask = () -> hide(notificationId);
notification.mView.postDelayed(hideTask, notification.mDuration);

if (notification.mView != null) {
notification.mView.postDelayed(hideTask, notification.mDuration);
}

mData.put(notificationId, new NotificationData(notificationView, notification, hideTask));
}
Expand Down

0 comments on commit 5884370

Please sign in to comment.