From daf851cfbf8bfa480c076df702892fc1226c51b9 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Wed, 26 Jun 2019 16:49:11 +0300 Subject: [PATCH] fix for #6933 - Routing details: "Walk {time}" string inverted in the 2nd walk --- .../plus/routepreparationmenu/RouteDetailsFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/RouteDetailsFragment.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/RouteDetailsFragment.java index d2b2e9cb66..4c3758ffd5 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/RouteDetailsFragment.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/RouteDetailsFragment.java @@ -797,13 +797,13 @@ public class RouteDetailsFragment extends ContextMenuFragment implements PublicT if (walkTime < 60) { walkTime = 60; } - SpannableStringBuilder spannable = new SpannableStringBuilder("~"); + SpannableStringBuilder spannable = new SpannableStringBuilder(getString(R.string.shared_string_walk)).append(" "); spannable.setSpan(new ForegroundColorSpan(getSecondaryColor()), 0, spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); int startIndex = spannable.length(); - spannable.append(OsmAndFormatter.getFormattedDuration(walkTime, app)).append(" "); + spannable.append("~").append(OsmAndFormatter.getFormattedDuration(walkTime, app)); spannable.setSpan(new CustomTypefaceSpan(typeface), startIndex, spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); startIndex = spannable.length(); - spannable.append(getString(R.string.shared_string_walk)).append(", ").append(OsmAndFormatter.getFormattedDistance((float) walkDist, app)); + spannable.append(", ").append(OsmAndFormatter.getFormattedDistance((float) walkDist, app)); spannable.setSpan(new ForegroundColorSpan(getSecondaryColor()), startIndex, spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); buildWalkRow(infoContainer, spannable, imagesContainer, new OnClickListener() {