package androidx.appcompat.widget; import android.R; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.text.method.KeyListener; import android.util.AttributeSet; import android.view.ActionMode; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.widget.AutoCompleteTextView; import o.AgY; import o.C0683McA; import o.C14224fpF; import o.Opp; import o.SYO; import o.URz; import o.WpN; import o.Yoi; import o.ZzE; import o.nKv; /* loaded from: classes.dex */ public class AppCompatAutoCompleteTextView extends AutoCompleteTextView { private static final int[] e = {R.attr.popupBackground}; private final Yoi b; private final WpN c; private final C14224fpF d; public AppCompatAutoCompleteTextView(Context context) { this(context, null); } public AppCompatAutoCompleteTextView(Context context, AttributeSet attributeSet) { this(context, attributeSet, SYO.IeS.autoCompleteTextViewStyle); } public AppCompatAutoCompleteTextView(Context context, AttributeSet attributeSet, int i) { super(ZzE.b(context), attributeSet, i); nKv.b(getContext()); Context context2 = getContext(); C0683McA c0683McA = new C0683McA(context2, context2.obtainStyledAttributes(attributeSet, e, i, 0)); if (c0683McA.d.hasValue(0)) { setDropDownBackgroundDrawable(c0683McA.jL_(0)); } c0683McA.d.recycle(); WpN wpN = new WpN(this); this.c = wpN; wpN.fy_(attributeSet, i); Yoi yoi = new Yoi(this); this.b = yoi; yoi.he_(attributeSet, i); yoi.a(); C14224fpF c14224fpF = new C14224fpF(this); this.d = c14224fpF; c14224fpF.gj_(attributeSet, i); e(c14224fpF); } void e(C14224fpF c14224fpF) { KeyListener keyListener = getKeyListener(); if (c14224fpF.gi_(keyListener)) { boolean isFocusable = super.isFocusable(); boolean isClickable = super.isClickable(); boolean isLongClickable = super.isLongClickable(); int inputType = super.getInputType(); KeyListener gh_ = c14224fpF.gh_(keyListener); if (gh_ == keyListener) { return; } super.setKeyListener(gh_); super.setRawInputType(inputType); super.setFocusable(isFocusable); super.setClickable(isClickable); super.setLongClickable(isLongClickable); } } @Override // android.widget.AutoCompleteTextView public void setDropDownBackgroundResource(int i) { setDropDownBackgroundDrawable(AgY.dT_(getContext(), i)); } @Override // android.view.View public void setBackgroundResource(int i) { super.setBackgroundResource(i); WpN wpN = this.c; if (wpN != null) { wpN.c(i); } } @Override // android.view.View public void setBackgroundDrawable(Drawable drawable) { super.setBackgroundDrawable(drawable); WpN wpN = this.c; if (wpN != null) { wpN.fz_(drawable); } } public void setSupportBackgroundTintList(ColorStateList colorStateList) { WpN wpN = this.c; if (wpN != null) { wpN.fB_(colorStateList); } } public void setSupportBackgroundTintMode(PorterDuff.Mode mode) { WpN wpN = this.c; if (wpN != null) { wpN.fC_(mode); } } @Override // android.widget.TextView, android.view.View protected void drawableStateChanged() { super.drawableStateChanged(); WpN wpN = this.c; if (wpN != null) { wpN.a(); } Yoi yoi = this.b; if (yoi != null) { yoi.a(); } } @Override // android.widget.TextView public void setTextAppearance(Context context, int i) { super.setTextAppearance(context, i); Yoi yoi = this.b; if (yoi != null) { yoi.d(context, i); } } @Override // android.widget.TextView, android.view.View public InputConnection onCreateInputConnection(EditorInfo editorInfo) { return this.d.gk_(Opp.go_(super.onCreateInputConnection(editorInfo), editorInfo, this), editorInfo); } @Override // android.widget.TextView public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) { super.setCustomSelectionActionModeCallback(URz.wh_(this, callback)); } @Override // android.widget.TextView public ActionMode.Callback getCustomSelectionActionModeCallback() { return URz.wg_(super.getCustomSelectionActionModeCallback()); } @Override // android.widget.TextView public void setKeyListener(KeyListener keyListener) { super.setKeyListener(this.d.gh_(keyListener)); } public void setEmojiCompatEnabled(boolean z) { this.d.d(z); } @Override // android.widget.TextView public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4); Yoi yoi = this.b; if (yoi != null) { yoi.l(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) { super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4); Yoi yoi = this.b; if (yoi != null) { yoi.l(); } } public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) { this.b.hh_(colorStateList); this.b.a(); } public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) { this.b.hi_(mode); this.b.a(); } }