package p028j; 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.ToggleButton; import p023h0.InterfaceC0808e1; import p032k0.InterfaceC1285b1; /* renamed from: j.f2 */ /* loaded from: classes.dex */ public class C1100f2 extends ToggleButton implements InterfaceC0808e1, InterfaceC1285b1 { /* renamed from: d */ public final C1080d f2692d; /* renamed from: e */ public final C1082d1 f2693e; /* renamed from: f */ public C1144m f2694f; public C1100f2(Context context, AttributeSet attributeSet) { this(context, attributeSet, 16842827); } public C1100f2(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); C1073b3.m2264a(this, getContext()); C1080d c1080d = new C1080d(this); this.f2692d = c1080d; c1080d.m2248e(attributeSet, i); C1082d1 c1082d1 = new C1082d1(this); this.f2693e = c1082d1; c1082d1.m2225m(attributeSet, i); getEmojiTextViewHelper().m2042b(attributeSet, i); } private C1144m getEmojiTextViewHelper() { if (this.f2694f == null) { this.f2694f = new C1144m(this); } return this.f2694f; } @Override // android.widget.ToggleButton, android.widget.CompoundButton, android.widget.TextView, android.view.View public void drawableStateChanged() { super.drawableStateChanged(); C1080d c1080d = this.f2692d; if (c1080d != null) { c1080d.m2251b(); } C1082d1 c1082d1 = this.f2693e; if (c1082d1 != null) { c1082d1.m2236b(); } } @Override // p023h0.InterfaceC0808e1 public ColorStateList getSupportBackgroundTintList() { C1080d c1080d = this.f2692d; if (c1080d != null) { return c1080d.m2250c(); } return null; } @Override // p023h0.InterfaceC0808e1 public PorterDuff.Mode getSupportBackgroundTintMode() { C1080d c1080d = this.f2692d; if (c1080d != null) { return c1080d.m2249d(); } return null; } public ColorStateList getSupportCompoundDrawablesTintList() { return this.f2693e.m2228j(); } public PorterDuff.Mode getSupportCompoundDrawablesTintMode() { return this.f2693e.m2227k(); } @Override // android.widget.TextView public void setAllCaps(boolean z) { super.setAllCaps(z); getEmojiTextViewHelper().m2041c(z); } @Override // android.widget.ToggleButton, android.view.View public void setBackgroundDrawable(Drawable drawable) { super.setBackgroundDrawable(drawable); C1080d c1080d = this.f2692d; if (c1080d != null) { c1080d.m2247f(drawable); } } @Override // android.view.View public void setBackgroundResource(int i) { super.setBackgroundResource(i); C1080d c1080d = this.f2692d; if (c1080d != null) { c1080d.m2246g(i); } } @Override // android.widget.TextView public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4); C1082d1 c1082d1 = this.f2693e; if (c1082d1 != null) { c1082d1.m2222p(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4); C1082d1 c1082d1 = this.f2693e; if (c1082d1 != null) { c1082d1.m2222p(); } } public void setEmojiCompatEnabled(boolean z) { getEmojiTextViewHelper().m2040d(z); } @Override // android.widget.TextView public void setFilters(InputFilter[] inputFilterArr) { super.setFilters(getEmojiTextViewHelper().m2043a(inputFilterArr)); } @Override // p023h0.InterfaceC0808e1 public void setSupportBackgroundTintList(ColorStateList colorStateList) { C1080d c1080d = this.f2692d; if (c1080d != null) { c1080d.m2244i(colorStateList); } } @Override // p023h0.InterfaceC0808e1 public void setSupportBackgroundTintMode(PorterDuff.Mode mode) { C1080d c1080d = this.f2692d; if (c1080d != null) { c1080d.m2243j(mode); } } @Override // p032k0.InterfaceC1285b1 public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) { this.f2693e.m2215w(colorStateList); this.f2693e.m2236b(); } @Override // p032k0.InterfaceC1285b1 public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) { this.f2693e.m2214x(mode); this.f2693e.m2236b(); } }