Merge pull request #1385 from xpirt/master

fix TYPE_DYNAMIC_ATTRIBUTE support
This commit is contained in:
Connor Tumbleson 2016-12-20 18:41:00 -05:00 committed by GitHub
commit 58ab04cca9
1 changed files with 2 additions and 1 deletions

View File

@ -55,8 +55,9 @@ public class ResValueFactory {
case TypedValue.TYPE_INT_BOOLEAN:
return new ResBoolValue(value != 0, value, rawValue);
case TypedValue.TYPE_DYNAMIC_REFERENCE:
case TypedValue.TYPE_DYNAMIC_ATTRIBUTE:
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) {