apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatTextClassifierHelper.smali
2020-09-16 23:45:23 +00:00

96 lines
2.9 KiB
Smali

.class public final Landroidx/appcompat/widget/AppCompatTextClassifierHelper;
.super Ljava/lang/Object;
.source "AppCompatTextClassifierHelper.java"
# instance fields
.field public mTextClassifier:Landroid/view/textclassifier/TextClassifier;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mTextView:Landroid/widget/TextView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/widget/TextView;)V
.locals 0
.param p1 # Landroid/widget/TextView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextClassifierHelper;->mTextView:Landroid/widget/TextView;
return-void
.end method
# virtual methods
.method public getTextClassifier()Landroid/view/textclassifier/TextClassifier;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
api = 0x1a
.end annotation
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextClassifierHelper;->mTextClassifier:Landroid/view/textclassifier/TextClassifier;
if-nez v0, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextClassifierHelper;->mTextView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
move-result-object v0
const-class v1, Landroid/view/textclassifier/TextClassificationManager;
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/textclassifier/TextClassificationManager;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/view/textclassifier/TextClassificationManager;->getTextClassifier()Landroid/view/textclassifier/TextClassifier;
move-result-object v0
return-object v0
:cond_0
sget-object v0, Landroid/view/textclassifier/TextClassifier;->NO_OP:Landroid/view/textclassifier/TextClassifier;
:cond_1
return-object v0
.end method
.method public setTextClassifier(Landroid/view/textclassifier/TextClassifier;)V
.locals 0
.param p1 # Landroid/view/textclassifier/TextClassifier;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RequiresApi;
api = 0x1a
.end annotation
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextClassifierHelper;->mTextClassifier:Landroid/view/textclassifier/TextClassifier;
return-void
.end method