package X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Outline;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableContainer;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.InsetDrawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
import android.util.Log;
import java.lang.reflect.Method;
/* compiled from: WrappedDrawableApi21.java */
/* loaded from: classes.dex */
public class X6FRs_4 extends Mqv2r_3 {
    public static Method KQgRr5e_0;

    public X6FRs_4(Drawable drawable) {
        super(drawable);
        KQgRr5e_0();
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.PGPF6hQ_2
    public boolean KQgRr5e_0() {
        if (Build.VERSION.SDK_INT == 21) {
            Drawable drawable = ((Mqv2r_3) this).f412KQgRr5e_0;
            return (drawable instanceof GradientDrawable) || (drawable instanceof DrawableContainer) || (drawable instanceof InsetDrawable) || (drawable instanceof RippleDrawable);
        }
        return false;
    }

    @Override // android.graphics.drawable.Drawable
    public Rect getDirtyBounds() {
        return ((Mqv2r_3) this).f412KQgRr5e_0.getDirtyBounds();
    }

    @Override // android.graphics.drawable.Drawable
    public void getOutline(Outline outline) {
        ((Mqv2r_3) this).f412KQgRr5e_0.getOutline(outline);
    }

    @Override // android.graphics.drawable.Drawable
    public void setHotspot(float f, float f2) {
        ((Mqv2r_3) this).f412KQgRr5e_0.setHotspot(f, f2);
    }

    @Override // android.graphics.drawable.Drawable
    public void setHotspotBounds(int i, int i2, int i3, int i4) {
        ((Mqv2r_3) this).f412KQgRr5e_0.setHotspotBounds(i, i2, i3, i4);
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, android.graphics.drawable.Drawable
    public boolean setState(int[] iArr) {
        if (super.setState(iArr)) {
            invalidateSelf();
            return true;
        }
        return false;
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTint(int i) {
        if (KQgRr5e_0()) {
            super.setTint(i);
        } else {
            ((Mqv2r_3) this).f412KQgRr5e_0.setTint(i);
        }
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTintList(ColorStateList colorStateList) {
        if (KQgRr5e_0()) {
            super.setTintList(colorStateList);
        } else {
            ((Mqv2r_3) this).f412KQgRr5e_0.setTintList(colorStateList);
        }
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTintMode(PorterDuff.Mode mode) {
        if (KQgRr5e_0()) {
            super.setTintMode(mode);
        } else {
            ((Mqv2r_3) this).f412KQgRr5e_0.setTintMode(mode);
        }
    }

    public X6FRs_4(IFxWkV_5 iFxWkV_5, Resources resources) {
        super(iFxWkV_5, resources);
        KQgRr5e_0();
    }

    @Override // X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.Mqv2r_3, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.PGPF6hQ_2
    public final void KQgRr5e_0() {
        if (KQgRr5e_0 == null) {
            try {
                KQgRr5e_0 = Drawable.class.getDeclaredMethod("isProjected", new Class[0]);
            } catch (Exception e) {
                Log.w("WrappedDrawableApi21", "Failed to retrieve Drawable#isProjected() method", e);
            }
        }
    }
}
