Merge pull request #5088 from osmandapp/WikiTitleFix
title and content have the same language
This commit is contained in:
commit
83d2f69f84
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,6 @@ public class WikipediaDialogFragment extends DialogFragment {
|
|||
if (TextUtils.isEmpty(preferredLanguage)) {
|
||||
preferredLanguage = getMyApplication().getLanguage();
|
||||
}
|
||||
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");
|
||||
if (Algorithms.isEmpty(lng)) {
|
||||
|
@ -176,6 +174,8 @@ public class WikipediaDialogFragment extends DialogFragment {
|
|||
}
|
||||
|
||||
final String langSelected = lng;
|
||||
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() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue