mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
TypedArray: revert getColor hack
This commit is contained in:
parent
dfa1662033
commit
b22001adbf
1 changed files with 2 additions and 2 deletions
|
@ -433,9 +433,9 @@ public class TypedArray {
|
|||
} else if (type == TypedValue.TYPE_STRING) {
|
||||
final TypedValue value = mValue;
|
||||
if (getValueAt(index, value)) {
|
||||
final ComplexColor cc = mResources.loadComplexColor(
|
||||
ColorStateList csl = mResources.loadColorStateList(
|
||||
value, value.resourceId, mTheme);
|
||||
return cc.getDefaultColor();
|
||||
return csl.getDefaultColor();
|
||||
}
|
||||
return defValue;
|
||||
} else if (type == TypedValue.TYPE_ATTRIBUTE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue