Try to fix reliable update for center-of-map coordinates in Search-Location tap

This commit is contained in:
sonora 2011-07-20 10:20:09 -07:00
parent 1cd6b83cd8
commit 8444ad89d2

View file

@ -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();
}