From ccde7c9f81e2a8fd4565afb62c9014576bc92272 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 3 Apr 2023 19:03:54 -0700 Subject: [PATCH] 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. --- app/src/main/java/net/voussoir/trkpt/TrackerService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt index 7e204aa..fdd1765 100644 --- a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt +++ b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt @@ -380,7 +380,7 @@ class TrackerService: Service() private fun displayNotification(): Notification { - notification_builder.setWhen(currentBestLocation.time) + notification_builder.setWhen(System.currentTimeMillis()) if (shouldCreateNotificationChannel()) { createNotificationChannel()