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;

/* JADX INFO: renamed from: ᵽᵧᵶ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5378 extends MultiAutoCompleteTextView implements InterfaceC0259 {

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public static final int[] f20378 = {R.attr.popupBackground};

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

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

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

    public C5378(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, ar.tvplayer.tv.R.attr._230_res_0x7f04004e);
        AbstractC2340.m6017(getContext(), this);
        C5398 c5398M11010 = C5398.m11010(getContext(), attributeSet, f20378, ar.tvplayer.tv.R.attr._230_res_0x7f04004e);
        if (((TypedArray) c5398M11010.f20483).hasValue(0)) {
            setDropDownBackgroundDrawable(c5398M11010.m11017(0));
        }
        c5398M11010.m11012();
        C4132 c4132 = new C4132(this);
        this.f20379 = c4132;
        c4132.m9047(attributeSet, ar.tvplayer.tv.R.attr._230_res_0x7f04004e);
        C2938 c2938 = new C2938(this);
        this.f20381 = c2938;
        c2938.m7013(attributeSet, ar.tvplayer.tv.R.attr._230_res_0x7f04004e);
        c2938.m7012();
        C0767 c0767 = new C0767(this, 5);
        this.f20380 = c0767;
        c0767.m2770(attributeSet, ar.tvplayer.tv.R.attr._230_res_0x7f04004e);
        KeyListener keyListener = getKeyListener();
        if (keyListener instanceof NumberKeyListener) {
            return;
        }
        boolean zIsFocusable = isFocusable();
        boolean zIsClickable = isClickable();
        boolean zIsLongClickable = isLongClickable();
        int inputType = getInputType();
        KeyListener keyListenerM2778 = c0767.m2778(keyListener);
        if (keyListenerM2778 == keyListener) {
            return;
        }
        super.setKeyListener(keyListenerM2778);
        setRawInputType(inputType);
        setFocusable(zIsFocusable);
        setClickable(zIsClickable);
        setLongClickable(zIsLongClickable);
    }

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

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

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

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

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

    @Override // android.widget.TextView, android.view.View
    public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        InputConnection inputConnectionOnCreateInputConnection = super.onCreateInputConnection(editorInfo);
        ᵗʓ.ᵯᵷʽ(editorInfo, inputConnectionOnCreateInputConnection, this);
        return this.f20380.m2771(inputConnectionOnCreateInputConnection, editorInfo);
    }

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

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

    @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.f20381;
        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.f20381;
        if (c2938 != null) {
            c2938.m7012();
        }
    }

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

    public void setEmojiCompatEnabled(boolean z) {
        this.f20380.m2779(z);
    }

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

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

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

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

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

    @Override // android.widget.TextView
    public final void setTextAppearance(Context context, int i) {
        super.setTextAppearance(context, i);
        C2938 c2938 = this.f20381;
        if (c2938 != null) {
            c2938.m7023(context, i);
        }
    }
}
