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