Prevents generation of NSes second time in wrong place

This commit is contained in:
Sergey Toshin
2018-08-13 18:42:53 +03:00
committed by skylot
parent b861151f63
commit fad0091d87
@@ -386,11 +386,7 @@ public class BinaryXMLParser extends CommonBinaryParser {
// reference custom processing
String name = styleMap.get(attrValData);
if (name != null) {
writer.add("@");
if (attributeNS != -1) {
writer.add(getAttributeNS(attributeNS)).add(':');
}
writer.add("style/").add(name.replaceAll("_", "."));
writer.add("@style/").add(name.replaceAll("_", "."));
} else {
FieldNode field = localStyleMap.get(attrValData);
if (field != null) {