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.
This commit is contained in:
voussoir 2023-04-03 19:03:54 -07:00
parent 548dcf2c58
commit ccde7c9f81

View file

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