package c.a.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 f5002a;

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

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

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