From 3eb8e9d5617bd0e207a5c60135a259aeb4002c60 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 27 Jul 2017 19:04:11 +0300 Subject: [PATCH] Fix crash --- 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))