Rename gave_up_at to dead_at.
This commit is contained in:
parent
33405cd063
commit
4e2beedaef
2 changed files with 8 additions and 8 deletions
|
@ -677,7 +677,7 @@ class MapFragment : Fragment()
|
||||||
motion: ${iso8601_local_noms(tracker.last_significant_motion)}
|
motion: ${iso8601_local_noms(tracker.last_significant_motion)}
|
||||||
watchdog: ${iso8601_local_noms(tracker.last_watchdog)}
|
watchdog: ${iso8601_local_noms(tracker.last_watchdog)}
|
||||||
home: ${iso8601_local_noms(tracker.arrived_at_home)}
|
home: ${iso8601_local_noms(tracker.arrived_at_home)}
|
||||||
died: ${iso8601_local_noms(tracker.gave_up_at)}
|
died: ${iso8601_local_noms(tracker.dead_at)}
|
||||||
power: ${tracker.device_is_charging}
|
power: ${tracker.device_is_charging}
|
||||||
wakelock: ${tracker.wakelock.isHeld}
|
wakelock: ${tracker.wakelock.isHeld}
|
||||||
accuracy: ${accuracy_text} m
|
accuracy: ${accuracy_text} m
|
||||||
|
|
|
@ -56,7 +56,7 @@ class TrackerService: Service()
|
||||||
var listeners_enabled_at: Long = 0
|
var listeners_enabled_at: Long = 0
|
||||||
var last_significant_motion: Long = 0
|
var last_significant_motion: Long = 0
|
||||||
var last_watchdog: Long = 0
|
var last_watchdog: Long = 0
|
||||||
var gave_up_at: Long = 0
|
var dead_at: Long = 0
|
||||||
var arrived_at_home: Long = 0
|
var arrived_at_home: Long = 0
|
||||||
val TIME_UNTIL_SLEEP: Long = 5 * Keys.ONE_MINUTE_IN_MILLISECONDS
|
val TIME_UNTIL_SLEEP: Long = 5 * Keys.ONE_MINUTE_IN_MILLISECONDS
|
||||||
val TIME_UNTIL_DEAD: Long = 3 * Keys.ONE_MINUTE_IN_MILLISECONDS
|
val TIME_UNTIL_DEAD: Long = 3 * Keys.ONE_MINUTE_IN_MILLISECONDS
|
||||||
|
@ -200,7 +200,7 @@ class TrackerService: Service()
|
||||||
trackbook.database.commit()
|
trackbook.database.commit()
|
||||||
recent_displacement_locations.clear()
|
recent_displacement_locations.clear()
|
||||||
arrived_at_home = 0
|
arrived_at_home = 0
|
||||||
gave_up_at = 0
|
dead_at = 0
|
||||||
if (foreground_started > 0)
|
if (foreground_started > 0)
|
||||||
{
|
{
|
||||||
stopForeground(STOP_FOREGROUND_DETACH)
|
stopForeground(STOP_FOREGROUND_DETACH)
|
||||||
|
@ -224,7 +224,7 @@ class TrackerService: Service()
|
||||||
PreferencesHelper.saveTrackingState(tracking_state)
|
PreferencesHelper.saveTrackingState(tracking_state)
|
||||||
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
||||||
arrived_at_home = 0
|
arrived_at_home = 0
|
||||||
gave_up_at = 0
|
dead_at = 0
|
||||||
if (foreground_started == 0L)
|
if (foreground_started == 0L)
|
||||||
{
|
{
|
||||||
startForeground(Keys.TRACKER_SERVICE_NOTIFICATION_ID, displayNotification())
|
startForeground(Keys.TRACKER_SERVICE_NOTIFICATION_ID, displayNotification())
|
||||||
|
@ -250,7 +250,7 @@ class TrackerService: Service()
|
||||||
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
||||||
trackbook.database.commit()
|
trackbook.database.commit()
|
||||||
arrived_at_home = System.currentTimeMillis()
|
arrived_at_home = System.currentTimeMillis()
|
||||||
gave_up_at = 0
|
dead_at = 0
|
||||||
stop_wakelock()
|
stop_wakelock()
|
||||||
displayNotification()
|
displayNotification()
|
||||||
}
|
}
|
||||||
|
@ -263,7 +263,7 @@ class TrackerService: Service()
|
||||||
PreferencesHelper.saveTrackingState(tracking_state)
|
PreferencesHelper.saveTrackingState(tracking_state)
|
||||||
reset_location_listeners(Keys.LOCATION_INTERVAL_SLEEP)
|
reset_location_listeners(Keys.LOCATION_INTERVAL_SLEEP)
|
||||||
arrived_at_home = arrived_at_home
|
arrived_at_home = arrived_at_home
|
||||||
gave_up_at = 0
|
dead_at = 0
|
||||||
stop_wakelock()
|
stop_wakelock()
|
||||||
displayNotification()
|
displayNotification()
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ class TrackerService: Service()
|
||||||
trackbook.database.commit()
|
trackbook.database.commit()
|
||||||
recent_displacement_locations.clear()
|
recent_displacement_locations.clear()
|
||||||
arrived_at_home = 0
|
arrived_at_home = 0
|
||||||
gave_up_at = System.currentTimeMillis()
|
dead_at = System.currentTimeMillis()
|
||||||
stop_wakelock()
|
stop_wakelock()
|
||||||
displayNotification()
|
displayNotification()
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@ class TrackerService: Service()
|
||||||
PreferencesHelper.saveTrackingState(tracking_state)
|
PreferencesHelper.saveTrackingState(tracking_state)
|
||||||
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
reset_location_listeners(Keys.LOCATION_INTERVAL_FULL_POWER)
|
||||||
arrived_at_home = 0
|
arrived_at_home = 0
|
||||||
gave_up_at = 0
|
dead_at = 0
|
||||||
stop_wakelock()
|
stop_wakelock()
|
||||||
displayNotification()
|
displayNotification()
|
||||||
if (!gpsLocationListenerRegistered && !networkLocationListenerRegistered)
|
if (!gpsLocationListenerRegistered && !networkLocationListenerRegistered)
|
||||||
|
|
Loading…
Reference in a new issue