From dcf767479807aa4d6017695145dbb7dbf4597cf8 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 3 Jan 2015 18:58:37 +0100 Subject: [PATCH] fix correct "Current map center" getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view) init if called from the map screen --- .../net/osmand/plus/activities/search/SearchActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java index 34dce7cde7..a4142d54da 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java @@ -169,7 +169,11 @@ public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo LatLon l = new LatLon(lat, lon); if(!Algorithms.objectEquals(reqSearchPoint, l)){ reqSearchPoint = l; - updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " ", true); + if (!Algorithms.objectEquals (reqSearchPoint, settings.getLastKnownMapLocation()) { + updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view), false); + } else { + updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " ", true); + } } } }