Merge pull request #5083 from osmandapp/WikiTitleLanguageFix
fixed bug with title language
This commit is contained in:
commit
c2cf2bb74d
1 changed files with 1 additions and 2 deletions
|
@ -167,8 +167,7 @@ public class WikipediaDialogFragment extends DialogFragment {
|
||||||
if (TextUtils.isEmpty(preferredLanguage)) {
|
if (TextUtils.isEmpty(preferredLanguage)) {
|
||||||
preferredLanguage = getMyApplication().getLanguage();
|
preferredLanguage = getMyApplication().getLanguage();
|
||||||
}
|
}
|
||||||
|
final String title = TextUtils.isEmpty(preferredLanguage) ? amenity.getName() : amenity.getName(preferredLanguage);
|
||||||
final String title = TextUtils.isEmpty(preferredLanguage) ? amenity.getName() : amenity.getName(lang);
|
|
||||||
((TextView) mainView.findViewById(R.id.title_text_view)).setText(title);
|
((TextView) mainView.findViewById(R.id.title_text_view)).setText(title);
|
||||||
|
|
||||||
String lng = amenity.getContentLanguage("content", preferredLanguage, "en");
|
String lng = amenity.getContentLanguage("content", preferredLanguage, "en");
|
||||||
|
|
Loading…
Reference in a new issue