From 870bfe2e2b6cf21bbaa1e59b877c5f897ba660d0 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 28 Feb 2018 17:17:29 +0200 Subject: [PATCH] fixed bug with title language --- .../osmand/plus/mapcontextmenu/WikipediaDialogFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java index 6747198d1f..73cd329e58 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java @@ -167,8 +167,7 @@ public class WikipediaDialogFragment extends DialogFragment { if (TextUtils.isEmpty(preferredLanguage)) { preferredLanguage = getMyApplication().getLanguage(); } - - final String title = TextUtils.isEmpty(preferredLanguage) ? amenity.getName() : amenity.getName(lang); + final String title = TextUtils.isEmpty(preferredLanguage) ? amenity.getName() : amenity.getName(preferredLanguage); ((TextView) mainView.findViewById(R.id.title_text_view)).setText(title); String lng = amenity.getContentLanguage("content", preferredLanguage, "en");