From 4450460778eaee63e680797e852e11d20accd6e9 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Tue, 13 Jun 2017 17:23:29 +0300 Subject: [PATCH] Save color from layer --- .../net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java | 1 + OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 1 + 2 files changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java index fdd5b05615..3ba8430163 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java @@ -148,6 +148,7 @@ public class TrackDetailsMenu { mapActivity.getMapView().setMapPositionX(0); mapActivity.getMapView().refreshMap(); segment = null; + trackChartPoints = null; } public void updateInfo(final View main) { diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index 8025f3effe..ab48dd0336 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -395,6 +395,7 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex if (color == 0) { color = cachedColor; } + trackChartPoints.setSegmentColor(color); } paintInnerRect.setColor(color); QuadRect latLonBounds = tileBox.getLatLonBounds();