diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java index 2ba324a2c0..b359a41453 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchHelper.java @@ -206,11 +206,12 @@ public class QuickSearchHelper implements ResourceListener { public boolean search(SearchPhrase phrase, SearchUICore.SearchResultMatcher resultMatcher) { SearchHistoryHelper helper = SearchHistoryHelper.getInstance(app); List points = helper.getHistoryEntries(); + int p = 0; for (SearchHistoryHelper.HistoryEntry point : points) { SearchResult sr = new SearchResult(phrase); sr.localeName = point.getName().getName(); sr.object = point; - sr.priority = SEARCH_HISTORY_OBJECT_PRIORITY; + sr.priority = SEARCH_HISTORY_OBJECT_PRIORITY + (p++); sr.objectType = ObjectType.RECENT_OBJ; sr.location = new LatLon(point.getLat(), point.getLon()); sr.preferredZoom = 17;