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

Commit 935b1fa2 authored by Alan Viverette's avatar Alan Viverette
Browse files

Remove old RippleDrawable constructor, fix new constructor

BUG: 16221737
Change-Id: I3807d8d7ccccf66568b9d5421cb9456fe818e2bf
parent 073204bb
Loading
Loading
Loading
Loading
+1 −20
Original line number Diff line number Diff line
@@ -152,25 +152,6 @@ public class RippleDrawable extends LayerDrawable {
        this(new RippleState(null, null, null), null, null);
    }

    /**
     * @hide TO BE REMOVED FOR L-RELEASE
     */
    public RippleDrawable(Drawable content, Drawable mask) {
        this(new RippleState(null, null, null), null, null);

        if (content != null) {
            addLayer(content, null, 0, 0, 0, 0, 0);
        }

        if (mask != null) {
            addLayer(content, null, android.R.id.mask, 0, 0, 0, 0);
        }

        ensurePadding();

        Log.e(LOG_TAG, "This constructor is being removed", new RuntimeException());
    }

    /**
     * Creates a new ripple drawable with the specified ripple color and
     * optional content and mask drawables.
@@ -192,7 +173,7 @@ public class RippleDrawable extends LayerDrawable {
        }

        if (mask != null) {
            addLayer(content, null, android.R.id.mask, 0, 0, 0, 0);
            addLayer(mask, null, android.R.id.mask, 0, 0, 0, 0);
        }

        setColor(color);