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) {
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(),