mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
fix array type values being misrepresented due to incorrect index
This commit is contained in:
@ -66,8 +66,7 @@ public class ResArrayValue extends ResBagValue implements
|
||||
return null;
|
||||
}
|
||||
String type = mItems[0].getType();
|
||||
for (int i = 1; i < mItems.length; i++) {
|
||||
|
||||
for (int i = 0; i < mItems.length; i++) {
|
||||
if (mItems[i].encodeAsResXmlItemValue().startsWith("@string")) {
|
||||
return "string";
|
||||
} else if (mItems[i].encodeAsResXmlItemValue().startsWith("@drawable")) {
|
||||
|
@ -23,4 +23,9 @@
|
||||
<item>10.0sp</item>
|
||||
<item>#ff123456</item>
|
||||
</array>
|
||||
<string-array name="issue_409">
|
||||
<item>@string/test1</item>
|
||||
<item>foo</item>
|
||||
<item>foo2</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user