From f6f5bf580905a1a850bdf036fe0f07683dab6eb8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 2 Apr 2023 20:35:43 -0700 Subject: [PATCH] Don't destroy the notification after service stops. --- app/src/main/java/net/voussoir/trkpt/TrackerService.kt | 1 - 1 file changed, 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 1fbb4c3..6da22b5 100644 --- a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt +++ b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt @@ -638,7 +638,6 @@ class TrackerService: Service() stopTracking() } stopForeground(STOP_FOREGROUND_REMOVE) - notificationManager.cancel(Keys.TRACKER_SERVICE_NOTIFICATION_ID) // this call was not necessary prior to Android 12 PreferencesHelper.unregisterPreferenceChangeListener(sharedPreferenceChangeListener) reset_location_listeners(interval=Keys.LOCATION_INTERVAL_DEAD) handler.removeCallbacks(background_watchdog)