From 8444ad89d2236b4cc16c1018acd6222c297fcbf9 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 20 Jul 2011 10:20:09 -0700 Subject: [PATCH] Try to fix reliable update for center-of-map coordinates in Search-Location tap --- .../src/net/osmand/plus/activities/NavigatePointActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java index c0b5a62694..7f8720f36a 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java @@ -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(); }