From 053fe8bc955597d10c172393ed0289d9205cd321 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 3 Jan 2015 19:39:44 +0100 Subject: [PATCH] fix small issue --- .../src/net/osmand/plus/activities/search/SearchActivity.java | 2 +- 1 file changed, 1 insertion(+), 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 4f0709acab..3610bd7a29 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchActivity.java @@ -169,7 +169,7 @@ public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo LatLon l = new LatLon(lat, lon); if(!Algorithms.objectEquals(reqSearchPoint, l)){ reqSearchPoint = l; - if (!Algorithms.objectEquals (reqSearchPoint, settings.getLastKnownMapLocation())) { + if (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);