From a3895bfd1f0171ce075b0697c41040ac8ce473b2 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 25 Mar 2017 19:27:56 +0100 Subject: [PATCH] Add alternate name --- .../net/osmand/plus/search/listitems/QuickSearchListItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java index 0d82a8467d..2ec1f0f757 100644 --- a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java +++ b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java @@ -2,7 +2,6 @@ package net.osmand.plus.search.listitems; import android.content.Context; import android.graphics.drawable.Drawable; - import net.osmand.binary.BinaryMapIndexReader; import net.osmand.data.Amenity; import net.osmand.data.City; @@ -101,7 +100,8 @@ public class QuickSearchListItem { } public String getTypeName() { - return getTypeName(app, searchResult); + String typeName = getTypeName(app, searchResult); + return (searchResult.alternateName != null ? searchResult.alternateName + " • " : "") + typeName; } public static String getTypeName(OsmandApplication app, SearchResult searchResult) {