package defpackage;

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 ar.tvplayer.tv.R;

/* JADX INFO: renamed from: ᵺˋ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C5126 extends CheckBox implements InterfaceC2329, InterfaceC0259 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final C2435 f19282;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final C2938 f19283;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final C4132 f19284;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public C0909 f19285;

    public C5126(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, R.attr.h);
        AbstractC2340.m6017(getContext(), this);
        C2435 c2435 = new C2435(this);
        this.f19282 = c2435;
        c2435.m6175(attributeSet, R.attr.h);
        C4132 c4132 = new C4132(this);
        this.f19284 = c4132;
        c4132.m9047(attributeSet, R.attr.h);
        C2938 c2938 = new C2938(this);
        this.f19283 = c2938;
        c2938.m7013(attributeSet, R.attr.h);
        getEmojiTextViewHelper().m3154(attributeSet, R.attr.h);
    }

    private C0909 getEmojiTextViewHelper() {
        if (this.f19285 == null) {
            this.f19285 = new C0909(this);
        }
        return this.f19285;
    }

    @Override // android.widget.CompoundButton, android.widget.TextView, android.view.View
    public final void drawableStateChanged() {
        super.drawableStateChanged();
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            c4132.m9036();
        }
        C2938 c2938 = this.f19283;
        if (c2938 != null) {
            c2938.m7012();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            return c4132.m9055();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            return c4132.m9058();
        }
        return null;
    }

    @Override // defpackage.InterfaceC2329
    public ColorStateList getSupportButtonTintList() {
        C2435 c2435 = this.f19282;
        if (c2435 != null) {
            return c2435.f9481;
        }
        return null;
    }

    public PorterDuff.Mode getSupportButtonTintMode() {
        C2435 c2435 = this.f19282;
        if (c2435 != null) {
            return c2435.f9478;
        }
        return null;
    }

    public ColorStateList getSupportCompoundDrawablesTintList() {
        return this.f19283.m7024();
    }

    public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
        return this.f19283.m7021();
    }

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

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            c4132.m9051();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            c4132.m9048(i);
        }
    }

    @Override // android.widget.CompoundButton
    public void setButtonDrawable(int i) {
        setButtonDrawable(ᵥˇᵛˎ.ᵶˇᵱ(getContext(), i));
    }

    @Override // android.widget.CompoundButton
    public void setButtonDrawable(Drawable drawable) {
        super.setButtonDrawable(drawable);
        C2435 c2435 = this.f19282;
        if (c2435 != null) {
            if (c2435.f9480) {
                c2435.f9480 = false;
            } else {
                c2435.f9480 = true;
                c2435.m6176();
            }
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
        C2938 c2938 = this.f19283;
        if (c2938 != null) {
            c2938.m7012();
        }
    }

    @Override // android.widget.TextView
    public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
        super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
        C2938 c2938 = this.f19283;
        if (c2938 != null) {
            c2938.m7012();
        }
    }

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

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

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            c4132.m9046(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C4132 c4132 = this.f19284;
        if (c4132 != null) {
            c4132.m9045(mode);
        }
    }

    @Override // defpackage.InterfaceC2329
    public void setSupportButtonTintList(ColorStateList colorStateList) {
        C2435 c2435 = this.f19282;
        if (c2435 != null) {
            c2435.f9481 = colorStateList;
            c2435.f9479 = true;
            c2435.m6176();
        }
    }

    @Override // defpackage.InterfaceC2329
    public void setSupportButtonTintMode(PorterDuff.Mode mode) {
        C2435 c2435 = this.f19282;
        if (c2435 != null) {
            c2435.f9478 = mode;
            c2435.f9482 = true;
            c2435.m6176();
        }
    }

    @Override // defpackage.InterfaceC0259
    public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
        C2938 c2938 = this.f19283;
        c2938.m7014(colorStateList);
        c2938.m7012();
    }

    @Override // defpackage.InterfaceC0259
    public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
        C2938 c2938 = this.f19283;
        c2938.m7018(mode);
        c2938.m7012();
    }
}
