From 2ad0fe821da527f8f49f03524f69ff65b50b1e11 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 2 Aug 2017 12:24:53 +0300 Subject: [PATCH] Fix last known location --- OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java index 9a2fcecd5b..e2f61670ca 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java @@ -122,7 +122,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment { public void onClick(View view) { final OsmandSettings settings = app.getSettings(); GPXFile gpx = getGpx(); - Location location = app.getLocationProvider().getLastKnownLocation(); + LatLon location = settings.getLastKnownMapLocation(); if (location != null) { settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(), settings.getLastKnownMapZoom(),