180 lines
5.5 KiB
Java
180 lines
5.5 KiB
Java
|
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.inputmethod.EditorInfo;
|
||
|
import android.view.inputmethod.InputConnection;
|
||
|
import android.widget.MultiAutoCompleteTextView;
|
||
|
import o.AgY;
|
||
|
import o.C0683McA;
|
||
|
import o.C14224fpF;
|
||
|
import o.Opp;
|
||
|
import o.SYO;
|
||
|
import o.WpN;
|
||
|
import o.Yoi;
|
||
|
import o.ZzE;
|
||
|
import o.nKv;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class AppCompatMultiAutoCompleteTextView extends MultiAutoCompleteTextView {
|
||
|
private static final int[] c = {R.attr.popupBackground};
|
||
|
private final C14224fpF a;
|
||
|
private final Yoi d;
|
||
|
private final WpN e;
|
||
|
|
||
|
public AppCompatMultiAutoCompleteTextView(Context context) {
|
||
|
this(context, null);
|
||
|
}
|
||
|
|
||
|
public AppCompatMultiAutoCompleteTextView(Context context, AttributeSet attributeSet) {
|
||
|
this(context, attributeSet, SYO.IeS.autoCompleteTextViewStyle);
|
||
|
}
|
||
|
|
||
|
public AppCompatMultiAutoCompleteTextView(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, c, i, 0));
|
||
|
if (c0683McA.d.hasValue(0)) {
|
||
|
setDropDownBackgroundDrawable(c0683McA.jL_(0));
|
||
|
}
|
||
|
c0683McA.d.recycle();
|
||
|
WpN wpN = new WpN(this);
|
||
|
this.e = wpN;
|
||
|
wpN.fy_(attributeSet, i);
|
||
|
Yoi yoi = new Yoi(this);
|
||
|
this.d = yoi;
|
||
|
yoi.he_(attributeSet, i);
|
||
|
yoi.a();
|
||
|
C14224fpF c14224fpF = new C14224fpF(this);
|
||
|
this.a = 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.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.c(i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View
|
||
|
public void setBackgroundDrawable(Drawable drawable) {
|
||
|
super.setBackgroundDrawable(drawable);
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fz_(drawable);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fB_(colorStateList);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fC_(mode);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView, android.view.View
|
||
|
protected void drawableStateChanged() {
|
||
|
super.drawableStateChanged();
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.a();
|
||
|
}
|
||
|
Yoi yoi = this.d;
|
||
|
if (yoi != null) {
|
||
|
yoi.a();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public void setTextAppearance(Context context, int i) {
|
||
|
super.setTextAppearance(context, i);
|
||
|
Yoi yoi = this.d;
|
||
|
if (yoi != null) {
|
||
|
yoi.d(context, i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView, android.view.View
|
||
|
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||
|
return this.a.gk_(Opp.go_(super.onCreateInputConnection(editorInfo), editorInfo, this), editorInfo);
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public void setKeyListener(KeyListener keyListener) {
|
||
|
super.setKeyListener(this.a.gh_(keyListener));
|
||
|
}
|
||
|
|
||
|
public void setEmojiCompatEnabled(boolean z) {
|
||
|
this.a.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.d;
|
||
|
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.d;
|
||
|
if (yoi != null) {
|
||
|
yoi.l();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
|
||
|
this.d.hh_(colorStateList);
|
||
|
this.d.a();
|
||
|
}
|
||
|
|
||
|
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
|
||
|
this.d.hi_(mode);
|
||
|
this.d.a();
|
||
|
}
|
||
|
}
|