Fix last known location
This commit is contained in:
parent
a26a44c8ef
commit
2ad0fe821d
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue