- _aveMovingSpeedLabel.setText(I18nManager.getText("details.range.avemovingspeed") + ": "
- + roundedNumber(selection.getMovingDistance(distUnits)/selection.getMovingSeconds()*3600.0) + " " + speedUnitsStr);
+ if (selection.getHasMultipleSegments()) {
+ _aveMovingSpeedLabel.setText(I18nManager.getText("details.range.avemovingspeed") + ": "
+ + roundedNumber(selection.getMovingDistance(distUnits)/selection.getMovingSeconds()*3600.0) + " " + speedUnitsStr);
+ }
+ else {
+ _aveMovingSpeedLabel.setText(null);
+ }
+ if (Config.getConfigBoolean(Config.KEY_SHOW_PACE)) {
+ _paceLabel.setText(I18nManager.getText("details.range.pace") + ": "
+ + buildDurationString((long) (selection.getNumSeconds()/selection.getDistance(distUnits)))
+ + " / " + distUnitsStr);
+ }
+ else {
+ _paceLabel.setText("");
+ }