fix TYPE_DYNAMIC_ATTRIBUTE support

This commit is contained in:
Andrei Conache 2016-12-20 14:09:10 +01:00
parent 164c64cec2
commit 983e0ad111

View File

@ -55,8 +55,9 @@ public class ResValueFactory {
case TypedValue.TYPE_INT_BOOLEAN: case TypedValue.TYPE_INT_BOOLEAN:
return new ResBoolValue(value != 0, value, rawValue); return new ResBoolValue(value != 0, value, rawValue);
case TypedValue.TYPE_DYNAMIC_REFERENCE: case TypedValue.TYPE_DYNAMIC_REFERENCE:
case TypedValue.TYPE_DYNAMIC_ATTRIBUTE:
return newReference(value, rawValue); return newReference(value, rawValue);
case TypedValue.TYPE_DYNAMIC_ATTRIBUTE:
return newReference(value, rawValue, true);
} }
if (type >= TypedValue.TYPE_FIRST_COLOR_INT && type <= TypedValue.TYPE_LAST_COLOR_INT) { if (type >= TypedValue.TYPE_FIRST_COLOR_INT && type <= TypedValue.TYPE_LAST_COLOR_INT) {