update context menu

This commit is contained in:
Victor Shcherb 2016-07-29 19:03:17 +02:00
parent 30304cf11a
commit b9f965f744
2 changed files with 3 additions and 5 deletions

View file

@ -78,7 +78,6 @@ public class TransportRouteController extends MenuController {
@Override
public void onHide() {
super.onHide();
MapContextMenu mm = getMapActivity().getContextMenu();
TransportStopsLayer stopsLayer = getMapActivity().getMapLayers().getTransportStopsLayer();
stopsLayer.setRoute(null);
}

View file

@ -394,10 +394,6 @@ public abstract class OsmandMapLayer {
rc.setDensityValue((float) tileBox.getMapDensity());
// cachedColor = req.getIntPropertyValue(rrs.PROPS.R_COLOR);
renderer.updatePaint(req, paint, 0, false, rc);
updateDefaultColor(paint, defaultColor);
if (paint.getStrokeWidth() == 0 && defaultWidth != 0) {
paint.setStrokeWidth(defaultWidth);
}
isPaint2 = renderer.updatePaint(req, paint2, 1, false, rc);
if (paint2.getStrokeWidth() == 0 && defaultWidth2 != 0) {
paint2.setStrokeWidth(defaultWidth2);
@ -420,6 +416,9 @@ public abstract class OsmandMapLayer {
}
} else {
System.err.println("Rendering attribute route is not found !");
}
updateDefaultColor(paint, defaultColor);
if (paint.getStrokeWidth() == 0 && defaultWidth != 0) {
paint.setStrokeWidth(defaultWidth);
}
}