Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
I have a ColorStateList
color/my_color.xml
defined like this:And
color/my_other_color.xml
:When I get the default color for the first with:
The results are:
Clearly something doesn't work pre API 23. I did a bit of debugging and it seems the issue is on these lines of :
ColorStateListInflaterCompat
Why is a platform method used to resolve color value? Shouldn't
AppCompatResources
be used here, and if that fails, thenTypedArray.getColor
?