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.ActionMode;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.AutoCompleteTextView;

/* JADX INFO: renamed from: ˈˏᵹ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C1063 extends AutoCompleteTextView implements InterfaceC0259 {

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

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

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

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

    public C1063(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        AbstractC2340.m6017(getContext(), this);
        C5398 c5398M11010 = C5398.m11010(getContext(), attributeSet, f4563, i);
        if (((TypedArray) c5398M11010.f20483).hasValue(0)) {
            setDropDownBackgroundDrawable(c5398M11010.m11017(0));
        }
        c5398M11010.m11012();
        C4132 c4132 = new C4132(this);
        this.f4564 = c4132;
        c4132.m9047(attributeSet, i);
        C2938 c2938 = new C2938(this);
        this.f4566 = c2938;
        c2938.m7013(attributeSet, i);
        c2938.m7012();
        C0767 c0767 = new C0767(this, 5);
        this.f4565 = c0767;
        c0767.m2770(attributeSet, i);
        KeyListener keyListener = getKeyListener();
        if (keyListener instanceof NumberKeyListener) {
            return;
        }
        boolean zIsFocusable = super.isFocusable();
        boolean zIsClickable = super.isClickable();
        boolean zIsLongClickable = super.isLongClickable();
        int inputType = super.getInputType();
        KeyListener keyListenerM2778 = c0767.m2778(keyListener);
        if (keyListenerM2778 == keyListener) {
            return;
        }
        super.setKeyListener(keyListenerM2778);
        super.setRawInputType(inputType);
        super.setFocusable(zIsFocusable);
        super.setClickable(zIsClickable);
        super.setLongClickable(zIsLongClickable);
    }

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

    @Override // android.widget.TextView
    public ActionMode.Callback getCustomSelectionActionModeCallback() {
        return ᵷᵸˁ.ʿٴˇ(super.getCustomSelectionActionModeCallback());
    }

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

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

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

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

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

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

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C4132 c4132 = this.f4564;
        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.f4566;
        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.f4566;
        if (c2938 != null) {
            c2938.m7012();
        }
    }

    @Override // android.widget.TextView
    public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
        super.setCustomSelectionActionModeCallback(ᵷᵸˁ.ᵠˏˏ(callback, this));
    }

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

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

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

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

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

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

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

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