package p037.p041.p051;

import android.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ActionMode;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.CheckedTextView;
import android.widget.TextView;
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 C1613 extends CheckedTextView {

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1613(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, R.attr.checkedTextViewStyle);
        C1686.m3292(context);
        C1684.m3289(this, getContext());
        C1640 c1640 = new C1640(this);
        this.f5239 = c1640;
        c1640.m3202(attributeSet, R.attr.checkedTextViewStyle);
        this.f5239.m3194();
        C1689 c1689M3294 = C1689.m3294(getContext(), attributeSet, f5238, R.attr.checkedTextViewStyle, 0);
        setCheckMarkDrawable(c1689M3294.m3300(0));
        c1689M3294.f5496.recycle();
    }

    @Override // android.widget.CheckedTextView, android.widget.TextView, android.view.View
    public void drawableStateChanged() {
        super.drawableStateChanged();
        C1640 c1640 = this.f5239;
        if (c1640 != null) {
            c1640.m3194();
        }
    }

    @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.widget.CheckedTextView
    public void setCheckMarkDrawable(int i) {
        setCheckMarkDrawable(C1527.m3025(getContext(), i));
    }

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

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