mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix for getMultilingualText when there's only monolingual text
Change-Id: I0b69a21225ed6bcf8607f5cef06a298e87820037
This commit is contained in:
parent
fa4a1d06ac
commit
e98cf731a8
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ public class MediaDataExtractor {
|
|||
// Hopefully a language code. Nasty hack!
|
||||
String lang = title;
|
||||
Node valueNode = findTemplateParameter(node, 1);
|
||||
String value = Utils.getStringFromDOM(valueNode); // hope there's no subtemplates or formatting for now
|
||||
String value = valueNode.getTextContent(); // hope there's no subtemplates or formatting for now
|
||||
texts.put(lang, value);
|
||||
}
|
||||
} else if (node.getNodeType() == Node.TEXT_NODE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue