package n;

import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;

/* JADX INFO: renamed from: n.o, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1226o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final AbstractC1224n f14906a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public ColorStateList f14907b = null;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public PorterDuff.Mode f14908c = null;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f14909d = false;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f14910e = false;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public boolean f14911f;

    public C1226o(AbstractC1224n abstractC1224n) {
        this.f14906a = abstractC1224n;
    }

    public final void a() {
        AbstractC1224n abstractC1224n = this.f14906a;
        Drawable buttonDrawable = abstractC1224n.getButtonDrawable();
        if (buttonDrawable != null) {
            if (this.f14909d || this.f14910e) {
                Drawable drawableMutate = buttonDrawable.mutate();
                if (this.f14909d) {
                    drawableMutate.setTintList(this.f14907b);
                }
                if (this.f14910e) {
                    drawableMutate.setTintMode(this.f14908c);
                }
                if (drawableMutate.isStateful()) {
                    drawableMutate.setState(abstractC1224n.getDrawableState());
                }
                abstractC1224n.setButtonDrawable(drawableMutate);
            }
        }
    }
}
