Skip to content

Commit

Permalink
fix(android): make sure scheduled time is shown in LocalNotifications (
Browse files Browse the repository at this point in the history
  • Loading branch information
naranjamecanica authored Mar 16, 2020
1 parent 59d02ab commit 448e7b7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ private void buildNotification(NotificationManagerCompat notificationManager, Lo
mBuilder.setGroup(group);
}

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

mBuilder.setVisibility(Notification.VISIBILITY_PRIVATE);
mBuilder.setOnlyAlertOnce(true);

Expand Down

0 comments on commit 448e7b7

Please sign in to comment.