mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Add option for Miles and Feet for distance (#651)
This commit is contained in:
parent
05327d2c05
commit
37762f300b
4 changed files with 10 additions and 7 deletions
|
|
@ -152,7 +152,7 @@ fun MapView(model: UIViewModel = viewModel()) {
|
|||
MarkerWithLabel(map, "${u.longName} ${formatAgo(p.time)}").apply {
|
||||
title = "${u.longName} ${node.batteryStr}"
|
||||
snippet = model.gpsString(p)
|
||||
ourNode?.distanceStr(node)?.let { dist ->
|
||||
ourNode?.distanceStr(node, model.config.display.units.number)?.let { dist ->
|
||||
val string = context.getString(R.string.map_subDescription)
|
||||
subDescription = string.format(ourNode.bearing(node), dist)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue