105 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			105 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Landroidx/appcompat/widget/k;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AppCompatTextClassifierHelper.java"
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public a:Landroid/widget/TextView;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public b:Landroid/view/textclassifier/TextClassifier;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .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
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroid/widget/TextView;
 | |
| 
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/TextView;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public a()Landroid/view/textclassifier/TextClassifier;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         api = 0x1a
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/k;->b:Landroid/view/textclassifier/TextClassifier;
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/TextView;
 | |
| 
 | |
|     .line 3
 | |
|     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
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/view/textclassifier/TextClassificationManager;->getTextClassifier()Landroid/view/textclassifier/TextClassifier;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     sget-object v0, Landroid/view/textclassifier/TextClassifier;->NO_OP:Landroid/view/textclassifier/TextClassifier;
 | |
| 
 | |
|     :cond_1
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public b(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
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/k;->b:Landroid/view/textclassifier/TextClassifier;
 | |
| 
 | |
|     return-void
 | |
| .end method
 |