package d.b.g;

import android.R;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.MultiAutoCompleteTextView;

/* JADX INFO: loaded from: classes.dex */
public class o extends MultiAutoCompleteTextView {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final int[] f2042f = {R.attr.popupBackground};

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final e f2043m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final z f2044n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public o(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, com.ifpdos.udi.service.core.pc.R.attr.autoCompleteTextViewStyle);
        w0.a(context);
        u0.a(this, getContext());
        z0 z0VarQ = z0.q(getContext(), attributeSet, f2042f, com.ifpdos.udi.service.core.pc.R.attr.autoCompleteTextViewStyle, 0);
        if (z0VarQ.o(0)) {
            setDropDownBackgroundDrawable(z0VarQ.g(0));
        }
        z0VarQ.f2138b.recycle();
        e eVar = new e(this);
        this.f2043m = eVar;
        eVar.d(attributeSet, com.ifpdos.udi.service.core.pc.R.attr.autoCompleteTextViewStyle);
        z zVar = new z(this);
        this.f2044n = zVar;
        zVar.e(attributeSet, com.ifpdos.udi.service.core.pc.R.attr.autoCompleteTextViewStyle);
        zVar.b();
    }

    @Override // android.widget.TextView, android.view.View
    public void drawableStateChanged() {
        super.drawableStateChanged();
        e eVar = this.f2043m;
        if (eVar != null) {
            eVar.a();
        }
        z zVar = this.f2044n;
        if (zVar != null) {
            zVar.b();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        e eVar = this.f2043m;
        if (eVar != null) {
            return eVar.b();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        e eVar = this.f2043m;
        if (eVar != null) {
            return eVar.c();
        }
        return null;
    }

    @Override // android.widget.TextView, android.view.View
    public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        InputConnection inputConnectionOnCreateInputConnection = super.onCreateInputConnection(editorInfo);
        d.b.a.f(inputConnectionOnCreateInputConnection, editorInfo, this);
        return inputConnectionOnCreateInputConnection;
    }

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        e eVar = this.f2043m;
        if (eVar != null) {
            eVar.e();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i2) {
        super.setBackgroundResource(i2);
        e eVar = this.f2043m;
        if (eVar != null) {
            eVar.f(i2);
        }
    }

    @Override // android.widget.AutoCompleteTextView
    public void setDropDownBackgroundResource(int i2) {
        setDropDownBackgroundDrawable(d.b.d.a.a.a(getContext(), i2));
    }

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        e eVar = this.f2043m;
        if (eVar != null) {
            eVar.h(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        e eVar = this.f2043m;
        if (eVar != null) {
            eVar.i(mode);
        }
    }

    @Override // android.widget.TextView
    public void setTextAppearance(Context context, int i2) {
        super.setTextAppearance(context, i2);
        z zVar = this.f2044n;
        if (zVar != null) {
            zVar.f(context, i2);
        }
    }
}
