refactor: put same path switch on same line

This commit is contained in:
Connor Tumbleson 2020-09-13 08:41:55 -04:00
parent 35a4bd6718
commit 2720cf93a3
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -44,6 +44,7 @@ public class ResValueFactory {
case TypedValue.TYPE_REFERENCE:
return newReference(value, null);
case TypedValue.TYPE_ATTRIBUTE:
case TypedValue.TYPE_DYNAMIC_ATTRIBUTE:
return newReference(value, rawValue, true);
case TypedValue.TYPE_STRING:
return new ResStringValue(rawValue, value);
@ -57,8 +58,6 @@ public class ResValueFactory {
return new ResBoolValue(value != 0, value, rawValue);
case TypedValue.TYPE_DYNAMIC_REFERENCE:
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) {