From 81adfbedef6982a3b3ca2bf1994a7388e5272d6d Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 2 Mar 2018 10:49:25 +0200 Subject: [PATCH] title and content have the same language --- .../net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java index cf355d45b1..d4910a318d 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java @@ -174,7 +174,7 @@ public class WikipediaDialogFragment extends DialogFragment { } final String langSelected = lng; - final String title = TextUtils.isEmpty(preferredLanguage) ? amenity.getName() : amenity.getName(langSelected); + final String title = amenity.getName(langSelected); ((TextView) mainView.findViewById(R.id.title_text_view)).setText(title); mainView.findViewById(R.id.read_full_article).setOnClickListener(new View.OnClickListener() {