Files

202 lines
6.5 KiB
Java

package m;
import a.AbstractC0106b;
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;
import androidx.recyclerview.widget.C0207b;
/* renamed from: m.x, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0495x extends MultiAutoCompleteTextView {
/* renamed from: d, reason: collision with root package name */
public static final int[] f7756d = {R.attr.popupBackground};
/* renamed from: a, reason: collision with root package name */
public final C0207b f7757a;
/* renamed from: b, reason: collision with root package name */
public final T f7758b;
/* renamed from: c, reason: collision with root package name */
public final C0499z f7759c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C0495x(Context context, AttributeSet attributeSet) {
super(context, attributeSet, com.adif.elcanomovil.R.attr.autoCompleteTextViewStyle);
L0.a(context);
K0.a(this, getContext());
R0.h l4 = R0.h.l(getContext(), attributeSet, f7756d, com.adif.elcanomovil.R.attr.autoCompleteTextViewStyle);
if (((TypedArray) l4.f1414b).hasValue(0)) {
setDropDownBackgroundDrawable(l4.f(0));
}
l4.n();
C0207b c0207b = new C0207b(this);
this.f7757a = c0207b;
c0207b.k(attributeSet, com.adif.elcanomovil.R.attr.autoCompleteTextViewStyle);
T t2 = new T(this);
this.f7758b = t2;
t2.f(attributeSet, com.adif.elcanomovil.R.attr.autoCompleteTextViewStyle);
t2.b();
C0499z c0499z = new C0499z(this);
this.f7759c = c0499z;
c0499z.e(attributeSet, com.adif.elcanomovil.R.attr.autoCompleteTextViewStyle);
KeyListener keyListener = getKeyListener();
if (keyListener instanceof NumberKeyListener) {
return;
}
boolean isFocusable = isFocusable();
boolean isClickable = isClickable();
boolean isLongClickable = isLongClickable();
int inputType = getInputType();
KeyListener d4 = c0499z.d(keyListener);
if (d4 == keyListener) {
return;
}
super.setKeyListener(d4);
setRawInputType(inputType);
setFocusable(isFocusable);
setClickable(isClickable);
setLongClickable(isLongClickable);
}
@Override // android.widget.TextView, android.view.View
public final void drawableStateChanged() {
super.drawableStateChanged();
C0207b c0207b = this.f7757a;
if (c0207b != null) {
c0207b.a();
}
T t2 = this.f7758b;
if (t2 != null) {
t2.b();
}
}
public ColorStateList getSupportBackgroundTintList() {
C0207b c0207b = this.f7757a;
if (c0207b != null) {
return c0207b.h();
}
return null;
}
public PorterDuff.Mode getSupportBackgroundTintMode() {
C0207b c0207b = this.f7757a;
if (c0207b != null) {
return c0207b.i();
}
return null;
}
public ColorStateList getSupportCompoundDrawablesTintList() {
return this.f7758b.d();
}
public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
return this.f7758b.e();
}
@Override // android.widget.TextView, android.view.View
public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
AbstractC0106b.x(editorInfo, onCreateInputConnection, this);
return this.f7759c.f(onCreateInputConnection, editorInfo);
}
@Override // android.view.View
public void setBackgroundDrawable(Drawable drawable) {
super.setBackgroundDrawable(drawable);
C0207b c0207b = this.f7757a;
if (c0207b != null) {
c0207b.m();
}
}
@Override // android.view.View
public void setBackgroundResource(int i) {
super.setBackgroundResource(i);
C0207b c0207b = this.f7757a;
if (c0207b != null) {
c0207b.n(i);
}
}
@Override // android.widget.TextView
public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
T t2 = this.f7758b;
if (t2 != null) {
t2.b();
}
}
@Override // android.widget.TextView
public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
T t2 = this.f7758b;
if (t2 != null) {
t2.b();
}
}
@Override // android.widget.AutoCompleteTextView
public void setDropDownBackgroundResource(int i) {
setDropDownBackgroundDrawable(AbstractC0106b.m(getContext(), i));
}
public void setEmojiCompatEnabled(boolean z3) {
this.f7759c.g(z3);
}
@Override // android.widget.TextView
public void setKeyListener(KeyListener keyListener) {
super.setKeyListener(this.f7759c.d(keyListener));
}
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
C0207b c0207b = this.f7757a;
if (c0207b != null) {
c0207b.s(colorStateList);
}
}
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
C0207b c0207b = this.f7757a;
if (c0207b != null) {
c0207b.t(mode);
}
}
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
T t2 = this.f7758b;
t2.i(colorStateList);
t2.b();
}
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
T t2 = this.f7758b;
t2.j(mode);
t2.b();
}
@Override // android.widget.TextView
public final void setTextAppearance(Context context, int i) {
super.setTextAppearance(context, i);
T t2 = this.f7758b;
if (t2 != null) {
t2.g(context, i);
}
}
}