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

Commit dfb3e5bb authored by Alan Viverette's avatar Alan Viverette Committed by The Android Automerger
Browse files

Create blank state in no-arg RotateDrawable constructor

Also removes unnecessary constructor in InsetState so that it matches
the other DrawableWrapper classes.

Bug: 19489698
Change-Id: Ib2e510c6ae90858774970d928e541a9b08cb714a
parent 2ba5a0f3
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ public class InsetDrawable extends DrawableWrapper {
     * No-arg constructor used by drawable inflation.
     */
    InsetDrawable() {
        this(new InsetState(), null);
        this(new InsetState(null), null);
    }

    /**
@@ -82,7 +82,7 @@ public class InsetDrawable extends DrawableWrapper {
     */
    public InsetDrawable(Drawable drawable, int insetLeft, int insetTop,int insetRight,
            int insetBottom) {
        this(new InsetState(), null);
        this(new InsetState(null), null);

        mState.mInsetLeft = insetLeft;
        mState.mInsetTop = insetTop;
@@ -267,10 +267,6 @@ public class InsetDrawable extends DrawableWrapper {
        int mInsetRight = 0;
        int mInsetBottom = 0;

        InsetState() {
            this(null);
        }

        InsetState(InsetState orig) {
            super(orig);

+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public class RotateDrawable extends DrawableWrapper {
     * Create a new rotating drawable with an empty state.
     */
    public RotateDrawable() {
        this(null, null);
        this(new RotateState(null), null);
    }

    @Override