Get distance instead of heading

This commit is contained in:
Alex Sytnyk 2018-07-06 19:34:33 +03:00
parent 8a7a18f909
commit c848155d53

View file

@ -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)
}
}