Fixes Facebook apk deconstruction
@@ -104,14 +104,14 @@ public class ResValueFactory {
return new ResPluralsValue(parentVal, items);
}
- if (ResTypeSpec.RES_TYPE_NAME_STYLES.equals(resTypeName)) {
- return new ResStyleValue(parentVal, items, this);
- }
-
if (ResTypeSpec.RES_TYPE_NAME_ATTR.equals(resTypeName)) {
return new ResAttr(parentVal, 0, null, null, null);
}
+ if (resTypeName.startsWith(ResTypeSpec.RES_TYPE_NAME_STYLES)) {
+ return new ResStyleValue(parentVal, items, this);
+ }
+
throw new AndrolibException("unsupported res type name for bags. Found: " + resTypeName);
}
