package c.b.f;

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

/* JADX INFO: compiled from: AppCompatCheckedTextViewHelper.java */
/* JADX INFO: loaded from: classes.dex */
public class k {
    public final CheckedTextView a;

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

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

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

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

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

    public k(CheckedTextView checkedTextView) {
        this.a = checkedTextView;
    }

    public void a() {
        Drawable checkMarkDrawable = this.a.getCheckMarkDrawable();
        if (checkMarkDrawable != null) {
            if (this.f871d || this.f872e) {
                Drawable drawableMutate = checkMarkDrawable.mutate();
                if (this.f871d) {
                    c.f.d.l.b.h(drawableMutate, this.f869b);
                }
                if (this.f872e) {
                    c.f.d.l.b.i(drawableMutate, this.f870c);
                }
                if (drawableMutate.isStateful()) {
                    drawableMutate.setState(this.a.getDrawableState());
                }
                this.a.setCheckMarkDrawable(drawableMutate);
            }
        }
    }
}
