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.RadioButton;
import p007c.C0485a;
import p013e.C0640a;
import p023h0.InterfaceC0808e1;
import p032k0.InterfaceC1280a1;
import p032k0.InterfaceC1285b1;

/* renamed from: j.m0 */
/* loaded from: classes.dex */
public class C1145m0 extends RadioButton implements InterfaceC1280a1, InterfaceC0808e1, InterfaceC1285b1 {

    /* renamed from: d */
    public final C1112i f2775d;

    /* renamed from: e */
    public final C1080d f2776e;

    /* renamed from: f */
    public final C1082d1 f2777f;

    /* renamed from: g */
    public C1144m f2778g;

    public C1145m0(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, C0485a.radioButtonStyle);
    }

    public C1145m0(Context context, AttributeSet attributeSet, int i) {
        super(C1091d3.m2198b(context), attributeSet, i);
        C1073b3.m2264a(this, getContext());
        C1112i c1112i = new C1112i(this);
        this.f2775d = c1112i;
        c1112i.m2124e(attributeSet, i);
        C1080d c1080d = new C1080d(this);
        this.f2776e = c1080d;
        c1080d.m2248e(attributeSet, i);
        C1082d1 c1082d1 = new C1082d1(this);
        this.f2777f = c1082d1;
        c1082d1.m2225m(attributeSet, i);
        getEmojiTextViewHelper().m2042b(attributeSet, i);
    }

    private C1144m getEmojiTextViewHelper() {
        if (this.f2778g == null) {
            this.f2778g = new C1144m(this);
        }
        return this.f2778g;
    }

    @Override // android.widget.CompoundButton, android.widget.TextView, android.view.View
    public void drawableStateChanged() {
        super.drawableStateChanged();
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            c1080d.m2251b();
        }
        C1082d1 c1082d1 = this.f2777f;
        if (c1082d1 != null) {
            c1082d1.m2236b();
        }
    }

    @Override // android.widget.CompoundButton, android.widget.TextView
    public int getCompoundPaddingLeft() {
        int compoundPaddingLeft = super.getCompoundPaddingLeft();
        C1112i c1112i = this.f2775d;
        return c1112i != null ? c1112i.m2127b(compoundPaddingLeft) : compoundPaddingLeft;
    }

    @Override // p023h0.InterfaceC0808e1
    public ColorStateList getSupportBackgroundTintList() {
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            return c1080d.m2250c();
        }
        return null;
    }

    @Override // p023h0.InterfaceC0808e1
    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            return c1080d.m2249d();
        }
        return null;
    }

    public ColorStateList getSupportButtonTintList() {
        C1112i c1112i = this.f2775d;
        if (c1112i != null) {
            return c1112i.m2126c();
        }
        return null;
    }

    public PorterDuff.Mode getSupportButtonTintMode() {
        C1112i c1112i = this.f2775d;
        if (c1112i != null) {
            return c1112i.m2125d();
        }
        return null;
    }

    public ColorStateList getSupportCompoundDrawablesTintList() {
        return this.f2777f.m2228j();
    }

    public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
        return this.f2777f.m2227k();
    }

    @Override // android.widget.TextView
    public void setAllCaps(boolean z) {
        super.setAllCaps(z);
        getEmojiTextViewHelper().m2041c(z);
    }

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            c1080d.m2247f(drawable);
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            c1080d.m2246g(i);
        }
    }

    @Override // android.widget.CompoundButton
    public void setButtonDrawable(int i) {
        setButtonDrawable(C0640a.m3229b(getContext(), i));
    }

    @Override // android.widget.CompoundButton
    public void setButtonDrawable(Drawable drawable) {
        super.setButtonDrawable(drawable);
        C1112i c1112i = this.f2775d;
        if (c1112i != null) {
            c1112i.m2123f();
        }
    }

    @Override // android.widget.TextView
    public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
        C1082d1 c1082d1 = this.f2777f;
        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.f2777f;
        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.f2776e;
        if (c1080d != null) {
            c1080d.m2244i(colorStateList);
        }
    }

    @Override // p023h0.InterfaceC0808e1
    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C1080d c1080d = this.f2776e;
        if (c1080d != null) {
            c1080d.m2243j(mode);
        }
    }

    @Override // p032k0.InterfaceC1280a1
    public void setSupportButtonTintList(ColorStateList colorStateList) {
        C1112i c1112i = this.f2775d;
        if (c1112i != null) {
            c1112i.m2122g(colorStateList);
        }
    }

    @Override // p032k0.InterfaceC1280a1
    public void setSupportButtonTintMode(PorterDuff.Mode mode) {
        C1112i c1112i = this.f2775d;
        if (c1112i != null) {
            c1112i.m2121h(mode);
        }
    }

    @Override // p032k0.InterfaceC1285b1
    public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
        this.f2777f.m2215w(colorStateList);
        this.f2777f.m2236b();
    }

    @Override // p032k0.InterfaceC1285b1
    public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
        this.f2777f.m2214x(mode);
        this.f2777f.m2236b();
    }
}