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

Commit 3e1585e0 authored by Chris Craik's avatar Chris Craik
Browse files

Add outline support to InsetDrawable

bug:15933107
Change-Id: I3341417dc197a751442d2b4c2645a1520db41095
parent f74930be
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.graphics.drawable;

import android.annotation.NonNull;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

@@ -274,6 +275,11 @@ public class InsetDrawable extends Drawable implements Drawable.Callback {
        return mInsetState.mDrawable.getIntrinsicHeight();
    }

    @Override
    public boolean getOutline(@NonNull Outline outline) {
        return mInsetState.mDrawable.getOutline(outline);
    }

    @Override
    public ConstantState getConstantState() {
        if (mInsetState.canConstantState()) {