Use current time in notification setwhen.

The text of the notification will still say the most recent location,
but in going from fullpower to dead I want the time of the notification
itself to be the moment of rip.
master
voussoir 2023-04-03 19:03:54 -07:00
parent 548dcf2c58
commit ccde7c9f81
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class TrackerService: Service()
private fun displayNotification(): Notification private fun displayNotification(): Notification
{ {
notification_builder.setWhen(currentBestLocation.time) notification_builder.setWhen(System.currentTimeMillis())
if (shouldCreateNotificationChannel()) if (shouldCreateNotificationChannel())
{ {
createNotificationChannel() createNotificationChannel()