diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 42de3cc5a9..cf1137dbfd 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -32,7 +32,9 @@ #B400FFFF #320000FF + #880000FF #280000FF + #660000FF #707CDC diff --git a/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java b/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java index f329d15cfe..4485e63bde 100644 --- a/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java @@ -32,6 +32,7 @@ public class PointLocationLayer extends OsmandMapLayer { private Bitmap bearingIcon; private Bitmap locationIcon; private OsmAndLocationProvider locationProvider; + private boolean nm; private void initUI() { locationPaint = new Paint(); @@ -78,6 +79,12 @@ public class PointLocationLayer extends OsmandMapLayer { @Override public void onDraw(Canvas canvas, RectF latLonBounds, RectF tilesRect, DrawSettings nightMode) { // draw + boolean nm = nightMode != null && nightMode.isNightMode(); + if(nm != this.nm) { + this.nm = nm; + area.setColor(view.getResources().getColor(!nm?R.color.pos_area : R.color.pos_area_night)); + headingPaint.setColor(view.getResources().getColor(!nm?R.color.pos_heading :R.color.pos_heading_night)); + } Location lastKnownLocation = locationProvider.getLastKnownLocation(); if(lastKnownLocation == null || view == null){ return;