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

Commit de9f10d9 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Sets Drawable in DrawableWrapper properly

Before this change, creating a DrawableWrapper (through a custom class
that extends it) using the public constructor will not set the drawable
callback properly and DrawableWrapper will not update when the
underlying Drawable is invalidated.

Test: CTS test added
Bug: 120835632
Change-Id: I3545db76e032c0bd074846e0fa64c5cf01e2941c
parent a6d82875
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ public abstract class DrawableWrapper extends Drawable implements Drawable.Callb
     */
    public DrawableWrapper(@Nullable Drawable dr) {
        mState = null;
        mDrawable = dr;
        setDrawable(dr);
    }

    /**