summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2021-04-26 21:16:44 -0400
committerJohn Reck <jreck@google.com>2021-04-26 21:16:44 -0400
commitb541034702a6d86301d5b0d433c98d93f4709d43 (patch)
tree23a59b626b693254249aff71f097cc26c0ed1569 /tools/aapt2/diff/Diff.cpp
parent57ef720249d114f724c742c4d9b391105a2d89ed (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 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions