Increased version to 1.4.6.

Fixed formatted=false error.
This commit is contained in:
Connor Tumbleson 2012-05-02 16:15:15 -05:00
parent 776a3b99c0
commit df7e469ff4
3 changed files with 16 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<groupId>brut.apktool</groupId>
<artifactId>apktool-cli</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<packaging>jar</packaging>
<parent>

View File

@ -4,7 +4,7 @@
<groupId>brut.apktool</groupId>
<artifactId>apktool-lib</artifactId>
<version>1.4.5-SNAPSHOT</version>
<version>1.4.6-SNAPSHOT</version>
<packaging>jar</packaging>
<parent>
@ -80,7 +80,7 @@
<artifactId>common</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<dependency>
<groupId>brut.apktool.smali</groupId>
<artifactId>smali</artifactId>
<version>${smaliVersion}</version>

View File

@ -19,6 +19,7 @@ package brut.androlib.res.data.value;
import brut.androlib.res.xml.ResValuesXmlSerializable;
import brut.androlib.AndrolibException;
import brut.androlib.res.data.ResResource;
import brut.androlib.res.xml.ResXmlEncoders;
import brut.util.Duo;
import java.io.IOException;
import org.xmlpull.v1.XmlSerializer;
@ -50,13 +51,22 @@ public class ResPluralsValue extends ResBagValue implements ResValuesXmlSerializ
}
serializer.startTag(null, "item");
serializer.attribute(null, "quantity", QUANTITY_MAP[i]);
serializer.text(item.encodeAsResXmlValue());
String item2 = item.encodeAsResXmlValue();
/*
* peaches fix regarding formatted=false
*/
if (ResXmlEncoders.hasMultipleNonPositionalSubstitutions(item2)) {
serializer.attribute(null, "formatted", "false");
}
serializer.text(item2);
serializer.endTag(null, "item");
}
serializer.endTag(null, "plurals");
}
private final ResScalarValue[] mItems;