package c.b.g;

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

/* JADX INFO: loaded from: classes.dex */
public final class m {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public TextView f4988a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public TextClassifier f4989b;

    public m(TextView textView) {
        this.f4988a = textView;
    }

    public TextClassifier a() {
        TextClassifier textClassifier = this.f4989b;
        if (textClassifier != null) {
            return textClassifier;
        }
        TextClassificationManager textClassificationManager = (TextClassificationManager) this.f4988a.getContext().getSystemService(TextClassificationManager.class);
        return textClassificationManager != null ? textClassificationManager.getTextClassifier() : TextClassifier.NO_OP;
    }
}
