Fix crash

This commit is contained in:
PavelRatushny 2017-07-27 19:04:11 +03:00
parent 2624ecaef0
commit 3eb8e9d561

View file

@ -591,7 +591,7 @@ public class SplitSegmentFragment extends OsmAndListFragment {
minMaxSpeedPaint.getTextBounds(maxMinSpeed, 0, maxMinSpeed.length(), minMaxSpeedTextBounds); minMaxSpeedPaint.getTextBounds(maxMinSpeed, 0, maxMinSpeed.length(), minMaxSpeedTextBounds);
int minMaxStringWidth = minMaxSpeedTextBounds.width(); 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)) (convertView.findViewById(R.id.max_speed_value))
.setVisibility(View.VISIBLE); .setVisibility(View.VISIBLE);
(convertView.findViewById(R.id.min_speed_value)) (convertView.findViewById(R.id.min_speed_value))