From d761318dc14bab55cbb7f7c10293597b9a157764 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 20 Jul 2011 09:20:43 -0700 Subject: [PATCH] try to fix that current center of map is always pre.fille in search - Location tab --- .../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..5fc44037ce 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointActivity.java @@ -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());