try to fix that current center of map is always pre.fille in search - Location tab

This commit is contained in:
sonora 2011-07-20 09:20:43 -07:00
parent d1fd070b07
commit d761318dc1

View file

@ -49,7 +49,8 @@ public class NavigatePointActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LatLon loc = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation();
// use actual map location instead, statement seems useless: LatLon loc = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation();
LatLon loc = activity.getMapLocation();
setContentView(R.layout.navigate_point);
setTitle(R.string.map_specify_point);
initUI(loc.getLatitude(), loc.getLongitude());