mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35:52 +01:00
Decode "%d %" with formatted="false". It's not necessary for current aapt, but it's more consistent with "%d % ".
This commit is contained in:
parent
68f97980eb
commit
e7ee8cb178
@ -175,6 +175,7 @@ public final class ResXmlEncoders {
|
|||||||
while ((pos = str.indexOf('%', pos2)) != -1) {
|
while ((pos = str.indexOf('%', pos2)) != -1) {
|
||||||
pos2 = pos + 1;
|
pos2 = pos + 1;
|
||||||
if (pos2 == length) {
|
if (pos2 == length) {
|
||||||
|
nonPositional.add(pos);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
char c = str.charAt(pos2++);
|
char c = str.charAt(pos2++);
|
||||||
|
@ -17,7 +17,7 @@ bar"</string>
|
|||||||
<string name="test_string16">foo<b>bar<i>"b
|
<string name="test_string16">foo<b>bar<i>"b
|
||||||
az"</i></b>foo</string>
|
az"</i></b>foo</string>
|
||||||
<string name="test_string17" formatted="false">%d of %d</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_string19">%2$s foo %1$d</string>
|
||||||
<string name="test_string20" formatted="false">%-e foo %,d</string>
|
<string name="test_string20" formatted="false">%-e foo %,d</string>
|
||||||
<string name="test_string21">%2$-e foo %1$,d</string>
|
<string name="test_string21">%2$-e foo %1$,d</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user