Files
rr3-apk/decompiled-community/sources/androidx/appcompat/widget/AppCompatTextClassifierHelper.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

50 lines
1.6 KiB
Java

package androidx.appcompat.widget;
import android.view.textclassifier.TextClassificationManager;
import android.view.textclassifier.TextClassifier;
import android.widget.TextView;
import androidx.annotation.DoNotInline;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.core.util.Preconditions;
/* loaded from: classes.dex */
final class AppCompatTextClassifierHelper {
@Nullable
private TextClassifier mTextClassifier;
@NonNull
private TextView mTextView;
@RequiresApi(api = 26)
public void setTextClassifier(@Nullable TextClassifier textClassifier) {
this.mTextClassifier = textClassifier;
}
public AppCompatTextClassifierHelper(@NonNull TextView textView) {
this.mTextView = (TextView) Preconditions.checkNotNull(textView);
}
@NonNull
@RequiresApi(api = 26)
public TextClassifier getTextClassifier() {
TextClassifier textClassifier = this.mTextClassifier;
return textClassifier == null ? Api26Impl.getTextClassifier(this.mTextView) : textClassifier;
}
@RequiresApi(26)
public static final class Api26Impl {
private Api26Impl() {
}
@NonNull
@DoNotInline
public static TextClassifier getTextClassifier(@NonNull TextView textView) {
TextClassificationManager textClassificationManager = (TextClassificationManager) textView.getContext().getSystemService(TextClassificationManager.class);
return textClassificationManager != null ? textClassificationManager.getTextClassifier() : TextClassifier.NO_OP;
}
}
}