36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.textclassifier.TextClassificationManager;
|
||
|
import android.view.textclassifier.TextClassifier;
|
||
|
import android.widget.TextView;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ZMp {
|
||
|
private TextClassifier c;
|
||
|
private TextView e;
|
||
|
|
||
|
public ZMp(TextView textView) {
|
||
|
this.e = textView;
|
||
|
}
|
||
|
|
||
|
public final TextClassifier gX_() {
|
||
|
TextClassifier textClassifier = this.c;
|
||
|
return textClassifier == null ? Sts.gZ_(this.e) : textClassifier;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static final class Sts {
|
||
|
static TextClassifier gZ_(TextView textView) {
|
||
|
TextClassificationManager textClassificationManager = (TextClassificationManager) textView.getContext().getSystemService(TextClassificationManager.class);
|
||
|
if (textClassificationManager != null) {
|
||
|
return textClassificationManager.getTextClassifier();
|
||
|
}
|
||
|
return TextClassifier.NO_OP;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void gY_(TextClassifier textClassifier) {
|
||
|
this.c = textClassifier;
|
||
|
}
|
||
|
}
|