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) {
|
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(),
|
||||||
|
|
Loading…
Reference in a new issue