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