package o;

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 com.google.android.gms.common.R;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.e8, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C1074e8 extends RadioButton implements If0 {
    public final A7 l;
    public final C2689v7 m;
    public final A8 n;

    /* renamed from: o, reason: collision with root package name */
    public Y7 f503o;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1074e8(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, R.attr.radioButtonStyle);
        Gf0.a(context);
        AbstractC1498if0.a(this, getContext());
        A7 a7 = new A7(this);
        this.l = a7;
        a7.d(attributeSet, R.attr.radioButtonStyle);
        C2689v7 c2689v7 = new C2689v7(this);
        this.m = c2689v7;
        c2689v7.m(attributeSet, R.attr.radioButtonStyle);
        A8 a8 = new A8(this);
        this.n = a8;
        a8.f(attributeSet, R.attr.radioButtonStyle);
        getEmojiTextViewHelper().a(attributeSet, R.attr.radioButtonStyle);
    }

    private Y7 getEmojiTextViewHelper() {
        if (this.f503o == null) {
            this.f503o = new Y7(this);
        }
        return this.f503o;
    }

    @Override // android.widget.CompoundButton, android.widget.TextView, android.view.View
    public final void drawableStateChanged() {
        super.drawableStateChanged();
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            c2689v7.i();
        }
        A8 a8 = this.n;
        if (a8 != null) {
            a8.b();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            return c2689v7.j();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            return c2689v7.k();
        }
        return null;
    }

    @Override // o.If0
    public ColorStateList getSupportButtonTintList() {
        A7 a7 = this.l;
        if (a7 != null) {
            return (ColorStateList) a7.a;
        }
        return null;
    }

    public PorterDuff.Mode getSupportButtonTintMode() {
        A7 a7 = this.l;
        if (a7 != null) {
            return (PorterDuff.Mode) a7.b;
        }
        return null;
    }

    public ColorStateList getSupportCompoundDrawablesTintList() {
        return this.n.d();
    }

    public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
        return this.n.e();
    }

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

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            c2689v7.o();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            c2689v7.p(i);
        }
    }

    @Override // android.widget.CompoundButton
    public void setButtonDrawable(Drawable drawable) {
        super.setButtonDrawable(drawable);
        A7 a7 = this.l;
        if (a7 != null) {
            if (a7.e) {
                a7.e = false;
            } else {
                a7.e = true;
                a7.a();
            }
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
        A8 a8 = this.n;
        if (a8 != null) {
            a8.b();
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
        A8 a8 = this.n;
        if (a8 != null) {
            a8.b();
        }
    }

    public void setEmojiCompatEnabled(boolean z) {
        getEmojiTextViewHelper().c(z);
    }

    @Override // android.widget.TextView
    public void setFilters(InputFilter[] inputFilterArr) {
        super.setFilters(((IJ) getEmojiTextViewHelper().b.m).p(inputFilterArr));
    }

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            c2689v7.r(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C2689v7 c2689v7 = this.m;
        if (c2689v7 != null) {
            c2689v7.s(mode);
        }
    }

    @Override // o.If0
    public void setSupportButtonTintList(ColorStateList colorStateList) {
        A7 a7 = this.l;
        if (a7 != null) {
            a7.a = colorStateList;
            a7.c = true;
            a7.a();
        }
    }

    @Override // o.If0
    public void setSupportButtonTintMode(PorterDuff.Mode mode) {
        A7 a7 = this.l;
        if (a7 != null) {
            a7.b = mode;
            a7.d = true;
            a7.a();
        }
    }

    public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
        A8 a8 = this.n;
        a8.k(colorStateList);
        a8.b();
    }

    public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
        A8 a8 = this.n;
        a8.l(mode);
        a8.b();
    }

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