AXmlResourceParser::getAttributeValue(): do not use raw value for color values.

This commit is contained in:
Ryszard Wiśniewski 2011-05-03 05:08:08 +02:00
parent 93af3fe56d
commit 6c051148b5

View File

@ -314,6 +314,10 @@ public class AXmlResourceParser implements XmlResourceParser {
valueString == -1
|| valueType == TypedValue.TYPE_REFERENCE
|| valueType == TypedValue.TYPE_ATTRIBUTE
|| (
valueType >= TypedValue.TYPE_FIRST_COLOR_INT
&& valueType <= TypedValue.TYPE_LAST_COLOR_INT
)
)) {
try {
return mAttrDecoder.decode(valueType, valueData,