From ce0ec5eff69e82253a1065093e9b9fc8b8b7bf20 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 19 Mar 2019 17:40:42 +0200 Subject: [PATCH 1/2] Issue #6651 - Shared location in search history wrong - fixed --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 1eb4f3e2c4..2d7b7f098b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -66,6 +66,7 @@ import net.osmand.plus.MapMarkersHelper.MapMarkerChangedListener; import net.osmand.plus.OnDismissDialogFragmentListener; import net.osmand.plus.OsmAndAppCustomization.OsmAndAppCustomizationListener; import net.osmand.plus.OsmAndConstants; +import net.osmand.plus.OsmAndFormatter; import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandSettings; @@ -1499,8 +1500,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven if (zoom != null) { z = Integer.parseInt(zoom); } - settings.setMapLocationToShow(lt, ln, z, new PointDescription( - PointDescription.POINT_TYPE_MARKER, getString(R.string.shared_location))); + settings.setMapLocationToShow(lt, ln, z, new PointDescription(lt, ln)); } catch (NumberFormatException e) { LOG.error("error", e); } From c956966dfe4a6f2f02956d9b622c3ba889d44005 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 19 Mar 2019 17:43:59 +0200 Subject: [PATCH 2/2] pr fix --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 1 - 1 file changed, 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 2d7b7f098b..71aa4c4894 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -66,7 +66,6 @@ import net.osmand.plus.MapMarkersHelper.MapMarkerChangedListener; import net.osmand.plus.OnDismissDialogFragmentListener; import net.osmand.plus.OsmAndAppCustomization.OsmAndAppCustomizationListener; import net.osmand.plus.OsmAndConstants; -import net.osmand.plus.OsmAndFormatter; import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandSettings;