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

Commit 6d64d5ab authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Add missing InsetDrawable.getDrawable() method"

parents d608b0e9 84956d53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10077,6 +10077,7 @@ package android.graphics.drawable {
    ctor public InsetDrawable(android.graphics.drawable.Drawable, int);
    ctor public InsetDrawable(android.graphics.drawable.Drawable, int, int, int, int);
    method public void draw(android.graphics.Canvas);
    method public android.graphics.drawable.Drawable getDrawable();
    method public int getOpacity();
    method public void invalidateDrawable(android.graphics.drawable.Drawable);
    method public void scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long);
+7 −0
Original line number Diff line number Diff line
@@ -261,6 +261,13 @@ public class InsetDrawable extends Drawable implements Drawable.Callback
        return this;
    }

    /**
     * Returns the drawable wrapped by this InsetDrawable. May be null.
     */
    public Drawable getDrawable() {
        return mInsetState.mDrawable;
    }

    final static class InsetState extends ConstantState {
        Drawable mDrawable;
        int mChangingConfigurations;