diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/graph/CustomGraphAdapter.java b/OsmAnd/src/net/osmand/plus/measurementtool/graph/CustomGraphAdapter.java index 32a1f6a654..fe7eff5261 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/graph/CustomGraphAdapter.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/graph/CustomGraphAdapter.java @@ -158,6 +158,7 @@ public class CustomGraphAdapter extends BaseGraphAdapter 0) { - timeStr.append(String.valueOf(hours)).append(" ").append(app.getString(R.string.osmand_parking_hour)).append(" "); - } - if (minutes > 0) { - timeStr.append(String.valueOf(minutes)).append(" ").append(app.getString(R.string.osmand_parking_minute)); - } + timeStr.append(OsmAndFormatter.getFormattedDuration(time, app)); spaceIndex = timeStr.toString().lastIndexOf(" "); if (spaceIndex != -1) { timeStr.setSpan(new ForegroundColorSpan(getMainFontColor()), 0, spaceIndex, 0);