From ec9076dc2babddd7ac8806351f5a58cff14f04bc Mon Sep 17 00:00:00 2001 From: nazar-kutz Date: Fri, 12 Mar 2021 13:00:21 +0200 Subject: [PATCH] Use correct gpx title in search history --- OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java index c9a3d1d5e9..7afc51de6c 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java @@ -416,7 +416,8 @@ public class QuickSearchListAdapter extends ArrayAdapter { LinearLayout view = getLinearLayout(convertView, R.layout.search_gpx_list_item); SearchResult sr = listItem.getSearchResult(); setupCheckBox(position, view, listItem); - GpxUiHelper.updateGpxInfoView(app, view, sr.localeName, listItem.getIcon(), gpxInfo); + String gpxTitle = GpxUiHelper.getGpxTitle(sr.localeName); + GpxUiHelper.updateGpxInfoView(app, view, gpxTitle, listItem.getIcon(), gpxInfo); return view; }