package defpackage;

import android.R;
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;

/* renamed from: ᵲᵣᵚ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4509 extends ToggleButton implements InterfaceC4415 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final C2956 f16808;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final C1611 f16809;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public C1471 f16810;

    public C4509(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, R.attr.buttonStyleToggle);
        AbstractC3247.m7608(getContext(), this);
        C1611 c1611 = new C1611(this);
        this.f16809 = c1611;
        c1611.m4617(attributeSet, R.attr.buttonStyleToggle);
        C2956 c2956 = new C2956(this);
        this.f16808 = c2956;
        c2956.m7246(attributeSet, R.attr.buttonStyleToggle);
        getEmojiTextViewHelper().m4380(attributeSet, R.attr.buttonStyleToggle);
    }

    private C1471 getEmojiTextViewHelper() {
        if (this.f16810 == null) {
            this.f16810 = new C1471(this);
        }
        return this.f16810;
    }

    @Override // android.widget.ToggleButton, android.widget.CompoundButton, android.widget.TextView, android.view.View
    public final void drawableStateChanged() {
        super.drawableStateChanged();
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            c1611.m4619();
        }
        C2956 c2956 = this.f16808;
        if (c2956 != null) {
            c2956.m7244();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            return c1611.m4620();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            return c1611.m4622();
        }
        return null;
    }

    public ColorStateList getSupportCompoundDrawablesTintList() {
        return this.f16808.m7237();
    }

    public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
        return this.f16808.m7236();
    }

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

    @Override // android.widget.ToggleButton, android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            c1611.m4618();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            c1611.m4602(i);
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
        C2956 c2956 = this.f16808;
        if (c2956 != null) {
            c2956.m7244();
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
        C2956 c2956 = this.f16808;
        if (c2956 != null) {
            c2956.m7244();
        }
    }

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

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

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            c1611.m4611(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C1611 c1611 = this.f16809;
        if (c1611 != null) {
            c1611.m4626(mode);
        }
    }

    @Override // defpackage.InterfaceC4415
    public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
        C2956 c2956 = this.f16808;
        c2956.m7241(colorStateList);
        c2956.m7244();
    }

    @Override // defpackage.InterfaceC4415
    public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
        C2956 c2956 = this.f16808;
        c2956.m7243(mode);
        c2956.m7244();
    }
}
