Points count will now be displayed with big letters in RoutePointsPlugin

This commit is contained in:
unknown 2014-06-25 17:33:29 +03:00
parent b2dcfacdad
commit 233ed453bf

View file

@ -99,7 +99,7 @@ public class RoutePointsPlugin extends OsmandPlugin {
private void registerWidget(MapActivity activity) {
MapInfoLayer mapInfoLayer = activity.getMapLayers().getMapInfoLayer();
if (mapInfoLayer != null) {
routeStepsControl = createRouteStepsInfoControl(activity, mapInfoLayer.getPaintSubText(), mapInfoLayer.getPaintSubText());
routeStepsControl = createRouteStepsInfoControl(activity, mapInfoLayer.getPaintText(), mapInfoLayer.getPaintSubText());
mapInfoLayer.getMapInfoControls().registerSideWidget(routeStepsControl,
R.drawable.widget_signpost, R.string.map_widget_route_points, "route_steps", false, 8);
mapInfoLayer.recreateControls();
@ -195,8 +195,7 @@ public class RoutePointsPlugin extends OsmandPlugin {
public String getDistance(RoutePoint rp) {
double d = MapUtils.getDistance(rp.getPoint(), getPoint());
String distance = OsmAndFormatter.getFormattedDistance((float) d, app);
return distance;
return OsmAndFormatter.getFormattedDistance((float) d, app);
}
public String getTime() {