package defpackage;

import android.R;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.text.method.KeyListener;
import android.text.method.NumberKeyListener;
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.MultiAutoCompleteTextView;

/* renamed from: ᵥᐧᵡᵘ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3511 extends MultiAutoCompleteTextView implements InterfaceC4415 {

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public static final int[] f13169 = {R.attr.popupBackground};

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

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

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final C2720 f13172;

    public C3511(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, ar.tvplayer.tv.R.attr._11_res_0x7f04004e);
        AbstractC3247.m7608(getContext(), this);
        C1570 c1570M4541 = C1570.m4541(getContext(), attributeSet, f13169, ar.tvplayer.tv.R.attr._11_res_0x7f04004e);
        if (((TypedArray) c1570M4541.f6230).hasValue(0)) {
            setDropDownBackgroundDrawable(c1570M4541.m4550(0));
        }
        c1570M4541.m4542();
        C1611 c1611 = new C1611(this);
        this.f13171 = c1611;
        c1611.m4617(attributeSet, ar.tvplayer.tv.R.attr._11_res_0x7f04004e);
        C2956 c2956 = new C2956(this);
        this.f13170 = c2956;
        c2956.m7246(attributeSet, ar.tvplayer.tv.R.attr._11_res_0x7f04004e);
        c2956.m7244();
        C2720 c2720 = new C2720(this);
        this.f13172 = c2720;
        c2720.m6749(attributeSet, ar.tvplayer.tv.R.attr._11_res_0x7f04004e);
        KeyListener keyListener = getKeyListener();
        if (keyListener instanceof NumberKeyListener) {
            return;
        }
        boolean zIsFocusable = isFocusable();
        boolean zIsClickable = isClickable();
        boolean zIsLongClickable = isLongClickable();
        int inputType = getInputType();
        KeyListener keyListenerM6738 = c2720.m6738(keyListener);
        if (keyListenerM6738 == keyListener) {
            return;
        }
        super.setKeyListener(keyListenerM6738);
        setRawInputType(inputType);
        setFocusable(zIsFocusable);
        setClickable(zIsClickable);
        setLongClickable(zIsLongClickable);
    }

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

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

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

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

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

    @Override // android.widget.TextView, android.view.View
    public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        InputConnection inputConnectionOnCreateInputConnection = super.onCreateInputConnection(editorInfo);
        ˉˇʨ.ᵡⁱᵥ(editorInfo, inputConnectionOnCreateInputConnection, this);
        return this.f13172.m6740(inputConnectionOnCreateInputConnection, editorInfo);
    }

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

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C1611 c1611 = this.f13171;
        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.f13170;
        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.f13170;
        if (c2956 != null) {
            c2956.m7244();
        }
    }

    @Override // android.widget.AutoCompleteTextView
    public void setDropDownBackgroundResource(int i) {
        setDropDownBackgroundDrawable(ᵕˏᵛ.ˑᵥˁ(getContext(), i));
    }

    public void setEmojiCompatEnabled(boolean z) {
        this.f13172.m6741(z);
    }

    @Override // android.widget.TextView
    public void setKeyListener(KeyListener keyListener) {
        super.setKeyListener(this.f13172.m6738(keyListener));
    }

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

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

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

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

    @Override // android.widget.TextView
    public final void setTextAppearance(Context context, int i) {
        super.setTextAppearance(context, i);
        C2956 c2956 = this.f13170;
        if (c2956 != null) {
            c2956.m7239(context, i);
        }
    }
}
