Merge branch 'jhornber-master'

This commit is contained in:
Connor Tumbleson 2015-03-03 15:42:57 -06:00
commit f9f59bff22
3 changed files with 14 additions and 6 deletions

View File

@ -60,6 +60,7 @@ v2.0.0 (TBA)
-Fixed (issue #757) - Download gradle binaries over https
-Fixed (issue #402) - Fix issues when running user has no access to $HOME.
-Fixed (issue #761) - Added proper support for BCP47 localization tags
-Fixed (issue #658) - Fixes Ampersand in "<" gets replaced with "&" in plural strings
-Fixed issue with attempting to decode .spi files as 9 patches (Thanks Furniel)
-Fixed issue with APKs with multiple dex files.
-Fixed issue with using Apktool without smali/baksmali for ApktoolProperties (Thanks teprrr)

View File

@ -10,7 +10,7 @@ import org.xmlpull.v1.XmlSerializer;
/**
* Implementation of XmlSerializer interface from XmlPull V1 API. This
* implementation is optimzied for performance and low memory footprint.
*
*
* <p>
* Implemented features:
* <ul>
@ -25,7 +25,7 @@ import org.xmlpull.v1.XmlSerializer;
* <li>PROPERTY_SERIALIZER_INDENTATION
* <li>PROPERTY_SERIALIZER_LINE_SEPARATOR
* </ul>
*
*
*/
public class MXSerializer implements XmlSerializer {
protected final static String XML_URI = "http://www.w3.org/XML/1998/namespace";
@ -1009,10 +1009,13 @@ public class MXSerializer implements XmlSerializer {
}
} else {
if (ch == '&') {
if (i > pos)
out.write(text.substring(pos, i));
out.write("&amp;");
pos = i + 1;
if (!(i < text.length() - 3 && text.charAt(i+1) == 'l'
&& text.charAt(i+2) == 't' && text.charAt(i+3) == ';')) {
if (i > pos)
out.write(text.substring(pos, i));
out.write("&amp;");
pos = i + 1;
}
} else if (ch == '<') {
if (i > pos)
out.write(text.substring(pos, i));

View File

@ -16,4 +16,8 @@
<item quantity="other">foo %d</item>
<item quantity="one">foo 1</item>
</plurals>
<plurals name="issue_658">
<item quantity="other">&lt;b>%d&lt;/b> guide123</item>
<item quantity="one">&lt;b>%d&lt;/b> 1</item>
</plurals>
</resources>