AXmlResourceParser.getAttributeValue(): returning non-string values using TypedValue.coerceToString().

This commit is contained in:
Ryszard Wiśniewski 2010-03-23 17:00:42 +01:00
parent 795591f935
commit 6af633590a

View File

@ -296,7 +296,7 @@ public class AXmlResourceParser implements XmlResourceParser {
return m_strings.getString(valueString);
}
int valueData = m_attributes[offset + ATTRIBUTE_IX_VALUE_DATA];
return "";//TypedValue.coerceToString(valueType,valueData);
return TypedValue.coerceToString(valueType, valueData);
}
public boolean getAttributeBooleanValue(int index, boolean defaultValue) {