Fix last known location

This commit is contained in:
PavelRatushny 2017-08-02 12:24:53 +03:00
parent a26a44c8ef
commit 2ad0fe821d

View file

@ -122,7 +122,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment {
public void onClick(View view) { public void onClick(View view) {
final OsmandSettings settings = app.getSettings(); final OsmandSettings settings = app.getSettings();
GPXFile gpx = getGpx(); GPXFile gpx = getGpx();
Location location = app.getLocationProvider().getLastKnownLocation(); LatLon location = settings.getLastKnownMapLocation();
if (location != null) { if (location != null) {
settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(), settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(),
settings.getLastKnownMapZoom(), settings.getLastKnownMapZoom(),