Get distance instead of heading
This commit is contained in:
parent
8a7a18f909
commit
c848155d53
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class UiUtils(private val app: TelegramApplication) {
|
|||
|
||||
if (text != null) {
|
||||
text.setTextColor(ContextCompat.getColor(app, colorId))
|
||||
val meters = if (fromLoc == null || toLoc == null) 0f else mes[1]
|
||||
val meters = if (fromLoc == null || toLoc == null) 0f else mes[0]
|
||||
text.text = OsmandFormatter.getFormattedDistance(meters, app)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue