Show accuracy in debug stats.

This commit is contained in:
voussoir 2023-09-03 21:29:39 -07:00
parent 7d05b4c777
commit 38675acb6c

View file

@ -665,6 +665,7 @@ class MapFragment : Fragment()
if (show_debug)
{
val accuracy_text: String = "%.2f".format(tracker.currentBestLocation.accuracy)
map_current_time.text = """
state: ${state_name()}
clock: ${iso8601_local_noms(System.currentTimeMillis())}
@ -676,6 +677,7 @@ class MapFragment : Fragment()
died: ${iso8601_local_noms(tracker.gave_up_at)}
power: ${tracker.device_is_charging}
wakelock: ${tracker.wakelock.isHeld}
accuracy: ${accuracy_text} m
""".trimIndent()
}
else