Fix bold arrows in navigation layer
This commit is contained in:
parent
0f5d57d5b8
commit
7a3c28c12f
1 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ public abstract class OsmandMapLayer {
|
||||||
OsmandRenderer renderer = app.getResourceManager().getRenderer().getRenderer();
|
OsmandRenderer renderer = app.getResourceManager().getRenderer().getRenderer();
|
||||||
RenderingRulesStorage rrs = app.getRendererRegistry().getCurrentSelectedRenderer();
|
RenderingRulesStorage rrs = app.getRendererRegistry().getCurrentSelectedRenderer();
|
||||||
final boolean isNight = settings != null && settings.isNightMode();
|
final boolean isNight = settings != null && settings.isNightMode();
|
||||||
int hsh = calculateHash(rrs, isNight, tileBox.getMapDensity());
|
int hsh = calculateHash(rrs, isNight, tileBox.getDensity());
|
||||||
if (hsh != cachedHash) {
|
if (hsh != cachedHash) {
|
||||||
cachedHash = hsh;
|
cachedHash = hsh;
|
||||||
if (rrs != null) {
|
if (rrs != null) {
|
||||||
|
@ -391,7 +391,7 @@ public abstract class OsmandMapLayer {
|
||||||
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, isNight);
|
req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, isNight);
|
||||||
if (req.searchRenderingAttribute(renderingAttribute)) {
|
if (req.searchRenderingAttribute(renderingAttribute)) {
|
||||||
RenderingContext rc = new OsmandRenderer.RenderingContext(app);
|
RenderingContext rc = new OsmandRenderer.RenderingContext(app);
|
||||||
rc.setDensityValue((float) tileBox.getMapDensity());
|
rc.setDensityValue((float) tileBox.getDensity());
|
||||||
// cachedColor = req.getIntPropertyValue(rrs.PROPS.R_COLOR);
|
// cachedColor = req.getIntPropertyValue(rrs.PROPS.R_COLOR);
|
||||||
renderer.updatePaint(req, paint, 0, false, rc);
|
renderer.updatePaint(req, paint, 0, false, rc);
|
||||||
isPaint2 = renderer.updatePaint(req, paint2, 1, false, rc);
|
isPaint2 = renderer.updatePaint(req, paint2, 1, false, rc);
|
||||||
|
|
Loading…
Reference in a new issue