fixed bug with title language
This commit is contained in:
parent
61619d2dcf
commit
870bfe2e2b
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue