You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
TypedArray: revert getColor hack
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user