ResArrayValue: added support for empty arrays.

This commit is contained in:
Ryszard Wiśniewski 2010-04-02 14:53:36 +02:00
parent 916e872330
commit c9f298fdea

View File

@ -59,6 +59,9 @@ public class ResArrayValue extends ResBagValue implements ResXmlSerializable {
}
public String getType() {
if (mItems.length == 0) {
return null;
}
String type = mItems[0].getType();
if (! "string".equals(type) && ! "integer".equals(type)) {
return null;