package androidx.appcompat.widget; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.text.InputFilter; import android.util.AttributeSet; import android.widget.CheckBox; import o.AgY; import o.C8590dPx; import o.InterfaceC16529pAK; import o.SYO; import o.WpN; import o.WvB; import o.Yoi; import o.ZzE; import o.nKv; /* loaded from: classes.dex */ public class AppCompatCheckBox extends CheckBox implements InterfaceC16529pAK { private final C8590dPx a; private final Yoi b; private WvB c; private final WpN d; public AppCompatCheckBox(Context context) { this(context, null); } public AppCompatCheckBox(Context context, AttributeSet attributeSet) { this(context, attributeSet, SYO.IeS.checkboxStyle); } public AppCompatCheckBox(Context context, AttributeSet attributeSet, int i) { super(ZzE.b(context), attributeSet, i); nKv.b(getContext()); C8590dPx c8590dPx = new C8590dPx(this); this.a = c8590dPx; c8590dPx.fI_(attributeSet, i); WpN wpN = new WpN(this); this.d = wpN; wpN.fy_(attributeSet, i); Yoi yoi = new Yoi(this); this.b = yoi; yoi.he_(attributeSet, i); d().gm_(attributeSet, i); } private WvB d() { if (this.c == null) { this.c = new WvB(this); } return this.c; } @Override // android.widget.CompoundButton public void setButtonDrawable(Drawable drawable) { super.setButtonDrawable(drawable); C8590dPx c8590dPx = this.a; if (c8590dPx != null) { c8590dPx.b(); } } @Override // android.widget.CompoundButton public void setButtonDrawable(int i) { setButtonDrawable(AgY.dT_(getContext(), i)); } @Override // android.widget.CompoundButton, android.widget.TextView public int getCompoundPaddingLeft() { int compoundPaddingLeft = super.getCompoundPaddingLeft(); C8590dPx c8590dPx = this.a; return c8590dPx != null ? c8590dPx.a(compoundPaddingLeft) : compoundPaddingLeft; } @Override // o.InterfaceC16529pAK public void setSupportButtonTintList(ColorStateList colorStateList) { C8590dPx c8590dPx = this.a; if (c8590dPx != null) { c8590dPx.fJ_(colorStateList); } } @Override // o.InterfaceC16529pAK public ColorStateList wI_() { C8590dPx c8590dPx = this.a; if (c8590dPx != null) { return c8590dPx.fH_(); } return null; } @Override // o.InterfaceC16529pAK public void setSupportButtonTintMode(PorterDuff.Mode mode) { C8590dPx c8590dPx = this.a; if (c8590dPx != null) { c8590dPx.fK_(mode); } } public void setSupportBackgroundTintList(ColorStateList colorStateList) { WpN wpN = this.d; if (wpN != null) { wpN.fB_(colorStateList); } } public void setSupportBackgroundTintMode(PorterDuff.Mode mode) { WpN wpN = this.d; if (wpN != null) { wpN.fC_(mode); } } @Override // android.view.View public void setBackgroundDrawable(Drawable drawable) { super.setBackgroundDrawable(drawable); WpN wpN = this.d; if (wpN != null) { wpN.fz_(drawable); } } @Override // android.view.View public void setBackgroundResource(int i) { super.setBackgroundResource(i); WpN wpN = this.d; if (wpN != null) { wpN.c(i); } } @Override // android.widget.CompoundButton, android.widget.TextView, android.view.View public void drawableStateChanged() { super.drawableStateChanged(); WpN wpN = this.d; if (wpN != null) { wpN.a(); } Yoi yoi = this.b; if (yoi != null) { yoi.a(); } } @Override // android.widget.TextView public void setFilters(InputFilter[] inputFilterArr) { super.setFilters(d().gl_(inputFilterArr)); } @Override // android.widget.TextView public void setAllCaps(boolean z) { super.setAllCaps(z); d().e(z); } public void setEmojiCompatEnabled(boolean z) { d().a(z); } @Override // android.widget.TextView public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4); Yoi yoi = this.b; if (yoi != null) { yoi.l(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4); Yoi yoi = this.b; if (yoi != null) { yoi.l(); } } public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) { this.b.hh_(colorStateList); this.b.a(); } public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) { this.b.hi_(mode); this.b.a(); } }