diff --git a/OsmAnd/src/net/osmand/plus/utils/OsmAndFormatter.java b/OsmAnd/src/net/osmand/plus/utils/OsmAndFormatter.java index 0e4363ba922..d97c1fe3693 100644 --- a/OsmAnd/src/net/osmand/plus/utils/OsmAndFormatter.java +++ b/OsmAnd/src/net/osmand/plus/utils/OsmAndFormatter.java @@ -89,7 +89,7 @@ public class OsmAndFormatter { public static final int SWISS_GRID_FORMAT = LocationConvert.SWISS_GRID_FORMAT; public static final int SWISS_GRID_PLUS_FORMAT = LocationConvert.SWISS_GRID_PLUS_FORMAT; private static final char DELIMITER_DEGREES = '°'; - private static final char DELIMITER_MINUTES = '′'; + private static final char DELIMITER_MINUTES = '\''; private static final char DELIMITER_SECONDS = '″'; private static final char NORTH = 'N'; diff --git a/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java index b09196e002d..960b0d6d5ff 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java @@ -23,7 +23,6 @@ import net.osmand.PlatformUtil; import net.osmand.core.android.MapRendererContext; -import net.osmand.plus.shared.SharedUtil; import net.osmand.core.android.MapRendererView; import net.osmand.core.jni.*; import net.osmand.core.jni.GpxAdditionalIconsProvider.SplitLabel; @@ -48,6 +47,7 @@ import net.osmand.plus.render.OsmandRenderer.RenderingContext; import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.settings.backend.preferences.CommonPreference; +import net.osmand.plus.shared.SharedUtil; import net.osmand.plus.track.CachedTrack; import net.osmand.plus.track.CachedTrackParams; import net.osmand.plus.track.Gpx3DLinePositionType; @@ -57,16 +57,8 @@ import net.osmand.plus.track.fragments.GpsFilterFragment; import net.osmand.plus.track.fragments.TrackAppearanceFragment; import net.osmand.plus.track.fragments.TrackMenuFragment; -import net.osmand.plus.track.helpers.GpxAppearanceHelper; -import net.osmand.plus.views.corenative.NativeCoreContext; -import net.osmand.shared.gpx.GpxDbHelper; -import net.osmand.plus.track.helpers.GpxDisplayGroup; -import net.osmand.plus.track.helpers.GpxDisplayItem; -import net.osmand.plus.track.helpers.GpxSelectionHelper; -import net.osmand.plus.track.helpers.GpxUtils; -import net.osmand.plus.track.helpers.ParseGpxRouteTask; +import net.osmand.plus.track.helpers.*; import net.osmand.plus.track.helpers.ParseGpxRouteTask.ParseGpxRouteListener; -import net.osmand.plus.track.helpers.SelectedGpxFile; import net.osmand.plus.track.helpers.save.SaveGpxHelper; import net.osmand.plus.utils.AndroidUtils; import net.osmand.plus.utils.ColorUtilities; @@ -78,6 +70,7 @@ import net.osmand.plus.views.Renderable.CurrentTrack; import net.osmand.plus.views.Renderable.RenderableSegment; import net.osmand.plus.views.Renderable.StandardTrack; +import net.osmand.plus.views.corenative.NativeCoreContext; import net.osmand.plus.views.layers.ContextMenuLayer.ApplyMovedObjectCallback; import net.osmand.plus.views.layers.ContextMenuLayer.IContextMenuProvider; import net.osmand.plus.views.layers.ContextMenuLayer.IMoveObjectProvider; @@ -92,12 +85,8 @@ import net.osmand.render.RenderingRulesStorage; import net.osmand.router.RouteSegmentResult; import net.osmand.shared.data.KQuadRect; -import net.osmand.shared.gpx.ColoringPurpose; -import net.osmand.shared.gpx.GpxDataItem; -import net.osmand.shared.gpx.GpxFile; -import net.osmand.shared.gpx.GpxUtilities; -import net.osmand.shared.gpx.GradientScaleType; -import net.osmand.shared.gpx.GpxHelper; +import net.osmand.shared.gpx.GpxDbHelper; +import net.osmand.shared.gpx.*; import net.osmand.shared.gpx.primitives.TrkSegment; import net.osmand.shared.gpx.primitives.WptPt; import net.osmand.shared.io.KFile; @@ -782,8 +771,8 @@ private void drawDirectionArrows(Canvas canvas, RotatedTileBox tileBox, List { if (callback != null) { - callback.onApplyMovedObject(errorMessage == null, objectInMotion); + callback.onApplyMovedObject(errorMessage == null, wptPt); } }); } + syncGpx(gpxFile); } } else if (callback != null) { callback.onApplyMovedObject(false, o);