Fix bold arrows in navigation layer

This commit is contained in:
Victor Shcherb 2016-10-16 11:34:48 +02:00
parent 0f5d57d5b8
commit 7a3c28c12f

View file

@ -383,7 +383,7 @@ public abstract class OsmandMapLayer {
OsmandRenderer renderer = app.getResourceManager().getRenderer().getRenderer();
RenderingRulesStorage rrs = app.getRendererRegistry().getCurrentSelectedRenderer();
final boolean isNight = settings != null && settings.isNightMode();
int hsh = calculateHash(rrs, isNight, tileBox.getMapDensity());
int hsh = calculateHash(rrs, isNight, tileBox.getDensity());
if (hsh != cachedHash) {
cachedHash = hsh;
if (rrs != null) {
@ -391,7 +391,7 @@ public abstract class OsmandMapLayer {
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, isNight);
if (req.searchRenderingAttribute(renderingAttribute)) {
RenderingContext rc = new OsmandRenderer.RenderingContext(app);
rc.setDensityValue((float) tileBox.getMapDensity());
rc.setDensityValue((float) tileBox.getDensity());
// cachedColor = req.getIntPropertyValue(rrs.PROPS.R_COLOR);
renderer.updatePaint(req, paint, 0, false, rc);
isPaint2 = renderer.updatePaint(req, paint2, 1, false, rc);