diff options
author | John Reck <jreck@google.com> | 2021-04-26 21:16:44 -0400 |
---|---|---|
committer | John Reck <jreck@google.com> | 2021-04-26 21:16:44 -0400 |
commit | b541034702a6d86301d5b0d433c98d93f4709d43 (patch) | |
tree | 23a59b626b693254249aff71f097cc26c0ed1569 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 57ef720249d114f724c742c4d9b391105a2d89ed (diff) |
Fix that CSL cache hits produce bad drawables
onState() needs to be called to initialize the color to be drawn
with. ColorStateListDrawable(ColorStateList) does this as part
of the call to setColorStateList(), however this was missing from
ColorStateListDrawable(ColorStateListDrawableState) which is hit
when doing ColorStateListDrawableState#newDrawable() when
Resources has a cache-hit on a drawable to load.
Fixes: 186254988
Test: app in bug
Change-Id: Ifb3626f6f85b03dd66142a2f91ba06bc648bff16
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions