Decode "%d %" with formatted="false". It's not necessary for current aapt, but it's more consistent with "%d % ".

This commit is contained in:
Ryszard Wiśniewski 2013-05-11 17:59:12 +02:00
parent 68f97980eb
commit e7ee8cb178
2 changed files with 2 additions and 1 deletions

View File

@ -175,6 +175,7 @@ public final class ResXmlEncoders {
while ((pos = str.indexOf('%', pos2)) != -1) {
pos2 = pos + 1;
if (pos2 == length) {
nonPositional.add(pos);
break;
}
char c = str.charAt(pos2++);

View File

@ -17,7 +17,7 @@ bar"</string>
<string name="test_string16">foo<b>bar<i>"b
az"</i></b>foo</string>
<string name="test_string17" formatted="false">%d of %d</string>
<string name="test_string18">foo %d bar %</string>
<string name="test_string18" formatted="false">foo %d bar %</string>
<string name="test_string19">%2$s foo %1$d</string>
<string name="test_string20" formatted="false">%-e foo %,d</string>
<string name="test_string21">%2$-e foo %1$,d</string>