From e723e6e68f9b119b3a2fb07067aae648d8070718 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Mon, 8 May 2017 08:34:17 -0400 Subject: [PATCH] Prevent over escaping plurals item tags --- .../java/brut/androlib/res/data/value/ResPluralsValue.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResPluralsValue.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResPluralsValue.java index 31f6f952..ced53fbf 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResPluralsValue.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResPluralsValue.java @@ -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");