fix: remove 24h event log cleanup that caused log loss on service restart
This commit is contained in:
parent
4ce1f51062
commit
c436dbc4a2
1 changed files with 0 additions and 5 deletions
|
|
@ -153,11 +153,6 @@ class LocationTrackingService : Service() {
|
|||
prefs.edit().putBoolean("tracking_active", true).apply()
|
||||
Log.d(TAG, "startTracking: set tracking_active=true")
|
||||
|
||||
serviceScope.launch {
|
||||
val cutoffTime = System.currentTimeMillis() - (24 * 60 * 60 * 1000)
|
||||
database.eventLogDao().deleteOlderThan(cutoffTime)
|
||||
}
|
||||
|
||||
fusedLocationProvider.startLocationUpdates(
|
||||
interval = config.interval * 1000L,
|
||||
fastestInterval = config.fastestInterval * 1000L,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue