summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/19/changes
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2015-08-05 21:44:42 -0700
committerChet Haase <chet@google.com>2015-08-06 07:55:24 -0700
commitbfa11e4ab8e4f85e711e8dd95db51dbd106a3c0f (patch)
treeae7eb40ad288290a8df29b214a95cb139908c292 /docs/html/sdk/api_diff/19/changes
parente72377e17a837acbe1e537ac737731f6b869fe1e (diff)
Avoid changing internal state of shared drawable
An optimization in ImageView nulled out the internal bitmap of a cached internal BitmapDrawable object created to wrap a bitmap set on the ImageView. However, apps can get ahold of that cached object via Drawable.getBitmap(), resulting in having the state of that object they may be using changing out from under them. The change is to null out the cached object when getDrawable() is called, to avoid leaking internal state that we may change. That way, the app can continue to use that object if they want to, but we are no longer relying on it internally, and will create a new one when needed. Issue #22930646 [1P Regression from L] ImageView is blanked out in Activity in Google Express Change-Id: Ic86cb93be4897b6ba247c1fabcda507e4ba01300
Diffstat (limited to 'docs/html/sdk/api_diff/19/changes')
0 files changed, 0 insertions, 0 deletions