TypedArray: revert getColor hack

This commit is contained in:
Julian Winkler
2025-01-11 23:20:09 +01:00
parent dfa1662033
commit b22001adbf

View File

@@ -433,9 +433,9 @@ public class TypedArray {
} else if (type == TypedValue.TYPE_STRING) { } else if (type == TypedValue.TYPE_STRING) {
final TypedValue value = mValue; final TypedValue value = mValue;
if (getValueAt(index, value)) { if (getValueAt(index, value)) {
final ComplexColor cc = mResources.loadComplexColor( ColorStateList csl = mResources.loadColorStateList(
value, value.resourceId, mTheme); value, value.resourceId, mTheme);
return cc.getDefaultColor(); return csl.getDefaultColor();
} }
return defValue; return defValue;
} else if (type == TypedValue.TYPE_ATTRIBUTE) { } else if (type == TypedValue.TYPE_ATTRIBUTE) {