From d7790a7bf2ee82f2a179d2272a03d0aff1563632 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Jun 2014 15:06:03 +0300 Subject: [PATCH] fixed issue with stroke.hotfix to routepointsactivity --- OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java | 4 ++-- .../plus/routepointsnavigation/RoutePointsActivity.java | 1 - OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java index 6b40ed0c43..dd4c239d69 100644 --- a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java +++ b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java @@ -251,7 +251,7 @@ public class GpxSelectionHelper { } return null; } - + public SelectedGpxFile getSelectedCurrentRecordingTrack() { for (SelectedGpxFile s : selectedGPXFiles) { if (s.isShowCurrentTrack()) { @@ -260,7 +260,7 @@ public class GpxSelectionHelper { } return null; } - + public void setGpxFileToDisplay(GPXFile... gpxs) { // special case for gpx current route for(GPXFile gpx : gpxs) { diff --git a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java index f258cf0a89..3e8acd2d04 100644 --- a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java +++ b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java @@ -2,7 +2,6 @@ package net.osmand.plus.routepointsnavigation; import java.util.ArrayList; import java.util.List; - import net.osmand.CallbackWithObject; import net.osmand.data.LatLon; import net.osmand.plus.GPXUtilities; diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index 466301919f..42116cf6c5 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -165,6 +165,11 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex for (List l : points) { path.rewind(); paint.setPathEffect(routePoints ? pathEffect : null); + if (routePoints){ + paint.setStrokeCap(Cap.BUTT); + } else { + paint.setStrokeCap(Cap.ROUND); + } int startIndex = -1; for (int i = 0; i < l.size(); i++) {