mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35:52 +01:00
ResArrayValue: added support for empty arrays.
This commit is contained in:
parent
916e872330
commit
c9f298fdea
@ -59,6 +59,9 @@ public class ResArrayValue extends ResBagValue implements ResXmlSerializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getType() {
|
public String getType() {
|
||||||
|
if (mItems.length == 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
String type = mItems[0].getType();
|
String type = mItems[0].getType();
|
||||||
if (! "string".equals(type) && ! "integer".equals(type)) {
|
if (! "string".equals(type) && ! "integer".equals(type)) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user