commit | b7ba1220a3dc3012d2e22825eaeb0e643333f5a4 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Jul 09 17:37:34 2015 -0700 |
committer | John Reck <jreck@google.com> | Thu Jul 09 17:40:41 2015 -0700 |
tree | ab3d320793ed3a3f268a955b88630cb988a575f7 | |
parent | 171fe6ac0aa5b0d2dd64ac1cdda25cdcb5f183f3 [diff] |
Teach ImageView to recycle internal drawables Bug: 22289362 It's pretty common for ImageView#setBitmap to be called repeatedly. Avoid re-creating the BitmapDrawable in this scenario as that has high object churn of semi-expensive objects like Paint. Change-Id: Ib77719cd0366d02c1a42f774850bf3b9caa9c288