Don't destroy the notification after service stops.

This commit is contained in:
voussoir 2023-04-02 20:35:43 -07:00
parent 97c2ccb4d5
commit f6f5bf5809

View file

@ -638,7 +638,6 @@ class TrackerService: Service()
stopTracking() stopTracking()
} }
stopForeground(STOP_FOREGROUND_REMOVE) stopForeground(STOP_FOREGROUND_REMOVE)
notificationManager.cancel(Keys.TRACKER_SERVICE_NOTIFICATION_ID) // this call was not necessary prior to Android 12
PreferencesHelper.unregisterPreferenceChangeListener(sharedPreferenceChangeListener) PreferencesHelper.unregisterPreferenceChangeListener(sharedPreferenceChangeListener)
reset_location_listeners(interval=Keys.LOCATION_INTERVAL_DEAD) reset_location_listeners(interval=Keys.LOCATION_INTERVAL_DEAD)
handler.removeCallbacks(background_watchdog) handler.removeCallbacks(background_watchdog)