From df0dc024f8faa2a76f445f5fd57d3fa98455db0b Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Sat, 1 Aug 2020 15:01:34 +0300 Subject: [PATCH] Fix default track width --- OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index b2a893d6f3..4eb6e3d30d 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -423,7 +423,7 @@ public class GPXLayer extends OsmandMapLayer implements IContextMenuProvider, IM boolean showArrows = isShowArrowsForTrack(selectedGpxFile.getGpxFile()); if (showArrows) { QuadRect correctedQuadRect = getCorrectedQuadRect(tileBox.getLatLonBounds()); - String width = getTrackWidthName(selectedGpxFile.getGpxFile(), defaultTrackWidthPref.get()); + String width = getTrackWidthName(selectedGpxFile.getGpxFile(), ""); float trackWidth = getTrackWidth(width, defaultTrackWidth); int color = getTrackColor(selectedGpxFile.getGpxFile(), cachedColor); int contrastColor = UiUtilities.getContrastColor(view.getApplication(), color, false); @@ -761,7 +761,7 @@ public class GPXLayer extends OsmandMapLayer implements IContextMenuProvider, IM List selectedGPXFiles, DrawSettings settings) { SelectedGpxFile currentTrack = null; for (SelectedGpxFile selectedGpxFile : selectedGPXFiles) { - String width = getTrackWidthName(selectedGpxFile.getGpxFile(), defaultTrackWidthPref.get()); + String width = getTrackWidthName(selectedGpxFile.getGpxFile(), ""); if (!cachedTrackWidth.containsKey(width)) { cachedTrackWidth.put(width, null); } @@ -780,7 +780,7 @@ public class GPXLayer extends OsmandMapLayer implements IContextMenuProvider, IM RotatedTileBox tileBox, DrawSettings settings) { List segments = selectedGpxFile.getPointsToDisplay(); for (TrkSegment ts : segments) { - String width = getTrackWidthName(selectedGpxFile.getGpxFile(), defaultTrackWidthPref.get()); + String width = getTrackWidthName(selectedGpxFile.getGpxFile(), ""); int color = getTrackColor(selectedGpxFile.getGpxFile(), ts.getColor(cachedColor)); if (ts.renderer == null && !ts.points.isEmpty()) { if (currentTrack) {