Try to fix reliable update for center-of-map coordinates in Search-Location tap
This commit is contained in:
parent
1cd6b83cd8
commit
8444ad89d2
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ public class NavigatePointActivity extends Activity {
|
|||
public void showDialog(){
|
||||
dlg.setContentView(R.layout.navigate_point);
|
||||
dlg.setTitle(R.string.map_specify_point);
|
||||
LatLon loc = activity.getMapLocation();
|
||||
// Try proper update for center of map LatLon loc = activity.getMapLocation();
|
||||
LatLon loc = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation();
|
||||
initUI(loc.getLatitude(), loc.getLongitude());
|
||||
dlg.show();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue