ResValueFactory::factory() : decode TYPE_STRING values.

This commit is contained in:
Ryszard Wiśniewski 2011-05-09 10:46:52 +02:00
parent 5740064cee
commit b0ad7517b7

View File

@ -38,6 +38,8 @@ public class ResValueFactory {
return newReference(value, rawValue); return newReference(value, rawValue);
case TypedValue.TYPE_ATTRIBUTE: case TypedValue.TYPE_ATTRIBUTE:
return newReference(value, rawValue, true); return newReference(value, rawValue, true);
case TypedValue.TYPE_STRING:
return new ResStringValue(rawValue);
case TypedValue.TYPE_FLOAT: case TypedValue.TYPE_FLOAT:
return new ResFloatValue(Float.intBitsToFloat(value), rawValue); return new ResFloatValue(Float.intBitsToFloat(value), rawValue);
case TypedValue.TYPE_DIMENSION: case TypedValue.TYPE_DIMENSION: