From 36423dfc7326706d70c77f49d7cd29d0eda7cd2d Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 3 Jan 2015 18:08:13 +0100 Subject: [PATCH] display "Origin: Last map view" in search header when approriate --- .../src/net/osmand/plus/activities/search/SearchActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java index 28bd34a9c4..34dce7cde7 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java @@ -177,7 +177,7 @@ public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo LatLon last = settings.getLastKnownMapLocation(); if(!Algorithms.objectEquals(reqSearchPoint, last)){ reqSearchPoint = last; - updateSearchPoint(last, getString(R.string.select_search_position), true); + updateSearchPoint(last, getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view), false); } } } @@ -239,7 +239,7 @@ public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo searchAroundCurrentLocation = false; endSearchCurrentLocation(); if (position == POSITION_LAST_MAP_VIEW) { - updateSearchPoint(settings.getLastKnownMapLocation(), getString(R.string.select_search_position) + " ", true); + updateSearchPoint(settings.getLastKnownMapLocation(), getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view), false); } else if (position == POSITION_FAVORITES) { Intent intent = new Intent(SearchActivity.this, FavouritesListActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);