Prevent over escaping plurals item tags

This commit is contained in:
Connor Tumbleson 2017-05-08 08:34:17 -04:00
parent 015f3a734b
commit e723e6e68f
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -50,11 +50,9 @@ public class ResPluralsValue extends ResBagValue implements
continue;
}
ResScalarValue rawValue = item;
serializer.startTag(null, "item");
serializer.attribute(null, "quantity", QUANTITY_MAP[i]);
serializer.text(ResXmlEncoders.enumerateNonPositionalSubstitutionsIfRequired(item.encodeAsResXmlValue()));
serializer.text(ResXmlEncoders.enumerateNonPositionalSubstitutionsIfRequired(item.encodeAsResXmlNonEscapedItemValue()));
serializer.endTag(null, "item");
}
serializer.endTag(null, "plurals");