Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da493aa6 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Avoid changing internal state of shared drawable" into mnc-dev

parents 190a88d2 bfa11e4a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
    }