apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatTextClassifierHelper.smali
2019-11-15 03:21:15 +01:00

73 lines
2.2 KiB
Smali

.class final Landroidx/appcompat/widget/AppCompatTextClassifierHelper;
.super Ljava/lang/Object;
.source "AppCompatTextClassifierHelper.java"
# instance fields
.field private mTextClassifier:Landroid/view/textclassifier/TextClassifier;
.field private mTextView:Landroid/widget/TextView;
# direct methods
.method constructor <init>(Landroid/widget/TextView;)V
.locals 0
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 final getTextClassifier()Landroid/view/textclassifier/TextClassifier;
.locals 2
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 final setTextClassifier(Landroid/view/textclassifier/TextClassifier;)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextClassifierHelper;->mTextClassifier:Landroid/view/textclassifier/TextClassifier;
return-void
.end method