am 42c70645: am aed2e8ba: am da493aa6: Merge "Avoid changing internal state of shared drawable" into mnc-dev
* commit '42c70645d28f07db145e02fd4a11af99c6437936': Avoid changing internal state of shared drawable
This commit is contained in:
@@ -384,6 +384,10 @@ public class ImageView extends View {
|
||||
assigned.
|
||||
*/
|
||||
public Drawable getDrawable() {
|
||||
if (mDrawable == mRecycleableBitmapDrawable) {
|
||||
// Consider our cached version dirty since app code now has a reference to it
|
||||
mRecycleableBitmapDrawable = null;
|
||||
}
|
||||
return mDrawable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user