package p037.p041.p051;

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.ActionMode;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.AutoCompleteTextView;
import android.widget.TextView;
import p037.p041.C1468;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p037.p041.p043.p044.C1527;

/* JADX INFO: renamed from: މ.ؠ.ގ.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1609 extends AutoCompleteTextView {

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

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final C1610 f5225;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final C1640 f5226;

    public C1609(Context context) {
        this(context, null);
    }

    public C1609(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, C1468.autoCompleteTextViewStyle);
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1609(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        C1686.m3292(context);
        C1684.m3289(this, getContext());
        C1689 c1689M3294 = C1689.m3294(getContext(), attributeSet, f5224, i, 0);
        if (c1689M3294.m3307(0)) {
            setDropDownBackgroundDrawable(c1689M3294.m3300(0));
        }
        c1689M3294.f5496.recycle();
        C1610 c1610 = new C1610(this);
        this.f5225 = c1610;
        c1610.m3148(attributeSet, i);
        C1640 c1640 = new C1640(this);
        this.f5226 = c1640;
        c1640.m3202(attributeSet, i);
        this.f5226.m3194();
    }

    @Override // android.widget.TextView, android.view.View
    public void drawableStateChanged() {
        super.drawableStateChanged();
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            c1610.m3144();
        }
        C1640 c1640 = this.f5226;
        if (c1640 != null) {
            c1640.m3194();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            return c1610.m3149();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            return c1610.m3151();
        }
        return null;
    }

    @Override // android.widget.TextView, android.view.View
    public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        InputConnection inputConnectionOnCreateInputConnection = super.onCreateInputConnection(editorInfo);
        LayoutInflaterFactory2C1494.C1505.m2898(inputConnectionOnCreateInputConnection, editorInfo, this);
        return inputConnectionOnCreateInputConnection;
    }

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            c1610.m3152();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            c1610.m3145(i);
        }
    }

    @Override // android.widget.TextView
    public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
        super.setCustomSelectionActionModeCallback(LayoutInflaterFactory2C1494.C1505.m2897((TextView) this, callback));
    }

    @Override // android.widget.AutoCompleteTextView
    public void setDropDownBackgroundResource(int i) {
        setDropDownBackgroundDrawable(C1527.m3025(getContext(), i));
    }

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            c1610.m3150(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C1610 c1610 = this.f5225;
        if (c1610 != null) {
            c1610.m3147(mode);
        }
    }

    @Override // android.widget.TextView
    public void setTextAppearance(Context context, int i) {
        super.setTextAppearance(context, i);
        C1640 c1640 = this.f5226;
        if (c1640 != null) {
            c1640.m3197(context, i);
        }
    }
}
