From c848155d53da441cbdc32f129a9a4b84a21365bd Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Fri, 6 Jul 2018 19:34:33 +0300 Subject: [PATCH] Get distance instead of heading --- OsmAnd-telegram/src/net/osmand/telegram/utils/UiUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/utils/UiUtils.kt b/OsmAnd-telegram/src/net/osmand/telegram/utils/UiUtils.kt index 2bd59b5697..6fdd7c9b93 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/utils/UiUtils.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/utils/UiUtils.kt @@ -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) } }