package p028j;

import android.view.textclassifier.TextClassificationManager;
import android.view.textclassifier.TextClassifier;
import android.widget.TextView;
import p020g0.C0737f;

/* renamed from: j.c1 */
/* loaded from: classes.dex */
public final class C1076c1 {

    /* renamed from: a */
    public TextView f2648a;

    /* renamed from: b */
    public TextClassifier f2649b;

    /* renamed from: j.c1$a */
    /* loaded from: classes.dex */
    public static final class C1077a {
        /* renamed from: a */
        public static TextClassifier m2254a(TextView textView) {
            Object systemService;
            TextClassifier textClassifier;
            TextClassifier textClassifier2;
            systemService = textView.getContext().getSystemService(TextClassificationManager.class);
            TextClassificationManager textClassificationManager = (TextClassificationManager) systemService;
            if (textClassificationManager != null) {
                textClassifier2 = textClassificationManager.getTextClassifier();
                return textClassifier2;
            }
            textClassifier = TextClassifier.NO_OP;
            return textClassifier;
        }
    }

    public C1076c1(TextView textView) {
        this.f2648a = (TextView) C0737f.m3033f(textView);
    }

    /* renamed from: a */
    public TextClassifier m2256a() {
        TextClassifier textClassifier = this.f2649b;
        return textClassifier == null ? C1077a.m2254a(this.f2648a) : textClassifier;
    }

    /* renamed from: b */
    public void m2255b(TextClassifier textClassifier) {
        this.f2649b = textClassifier;
    }
}