Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): make sure scheduled time is shown in LocalNotifications #2553

Merged
merged 6 commits into from
Mar 16, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,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