From 423459082bf7c0c8406d940a2ec79919721f7656 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 27 Jul 2017 19:04:11 +0300 Subject: [PATCH] Fix crash (cherry picked from commit 3eb8e9d) --- OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java index 5a39560aeb..a6cc716c92 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java @@ -591,7 +591,7 @@ public class SplitSegmentFragment extends OsmAndListFragment { minMaxSpeedPaint.getTextBounds(maxMinSpeed, 0, maxMinSpeed.length(), minMaxSpeedTextBounds); int minMaxStringWidth = minMaxSpeedTextBounds.width(); - if (minSpeed.substring(0, minSpeed.indexOf(" ")).equals("0") || minSpeed.substring(0, minSpeed.indexOf(" ")).equals("0.0")) { + if (analysis.minSpeed == 0) { (convertView.findViewById(R.id.max_speed_value)) .setVisibility(View.VISIBLE); (convertView.findViewById(R.id.min_speed_value))