Skip to content

Commit

Permalink
fix(android): make LocalNotification not crash on showing when (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Apr 1, 2020
1 parent 2185833 commit 63ecd1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private void buildNotification(NotificationManagerCompat notificationManager, Lo
}

// make sure scheduled time is shown instead of display time
if (localNotification.isScheduled()) {
if (localNotification.isScheduled() && localNotification.getSchedule().getAt() != null) {
mBuilder.setWhen(localNotification.getSchedule().getAt().getTime())
.setShowWhen(true);
.setShowWhen(true);
}

mBuilder.setVisibility(NotificationCompat.VISIBILITY_PRIVATE);
Expand Down

0 comments on commit 63ecd1c

Please sign in to comment.