311 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			311 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/appcompat/widget/AppCompatSpinner$c;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AppCompatSpinner.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Landroidx/appcompat/widget/AppCompatSpinner$f;
 | |
| .implements Landroid/content/DialogInterface$OnClickListener;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroidx/annotation/VisibleForTesting;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x1
 | |
|     name = "c"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public a:Landroidx/appcompat/app/c;
 | |
|     .annotation build Landroidx/annotation/VisibleForTesting;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public b:Landroid/widget/ListAdapter;
 | |
| 
 | |
| .field public c:Ljava/lang/CharSequence;
 | |
| 
 | |
| .field public final synthetic d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroidx/appcompat/widget/AppCompatSpinner;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public a()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->a:Landroidx/appcompat/app/c;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public b()I
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public dismiss()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->a:Landroidx/appcompat/app/c;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Landroidx/appcompat/app/e;->dismiss()V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->a:Landroidx/appcompat/app/c;
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public e(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     const-string p1, "AppCompatSpinner"
 | |
| 
 | |
|     const-string v0, "Cannot set horizontal offset for MODE_DIALOG, ignoring"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public f()Ljava/lang/CharSequence;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->c:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public g()Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public h(Ljava/lang/CharSequence;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->c:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public i(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     const-string p1, "AppCompatSpinner"
 | |
| 
 | |
|     const-string v0, "Cannot set vertical offset for MODE_DIALOG, ignoring"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public j(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     const-string p1, "AppCompatSpinner"
 | |
| 
 | |
|     const-string v0, "Cannot set horizontal (original) offset for MODE_DIALOG, ignoring"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public k(II)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->b:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance v0, Landroidx/appcompat/app/c$a;
 | |
| 
 | |
|     iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatSpinner;->getPopupContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-direct {v0, v1}, Landroidx/appcompat/app/c$a;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->c:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1}, Landroidx/appcompat/app/c$a;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/c$a;
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->b:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     iget-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v2}, Landroid/widget/Spinner;->getSelectedItemPosition()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, v1, v2, p0}, Landroidx/appcompat/app/c$a;->setSingleChoiceItems(Landroid/widget/ListAdapter;ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/c$a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v0}, Landroidx/appcompat/app/c$a;->create()Landroidx/appcompat/app/c;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->a:Landroidx/appcompat/app/c;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {v0}, Landroidx/appcompat/app/c;->b()Landroid/widget/ListView;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/ListView;->setTextDirection(I)V
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v0, p2}, Landroid/widget/ListView;->setTextAlignment(I)V
 | |
| 
 | |
|     .line 12
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->a:Landroidx/appcompat/app/c;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/app/Dialog;->show()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public l()I
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public m()I
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public n(Landroid/widget/ListAdapter;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->b:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onClick(Landroid/content/DialogInterface;I)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/widget/Spinner;->setSelection(I)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/widget/Spinner;->getOnItemClickListener()Landroid/widget/AdapterView$OnItemClickListener;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->d:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$c;->b:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     invoke-interface {v1, p2}, Landroid/widget/ListAdapter;->getItemId(I)J
 | |
| 
 | |
|     move-result-wide v1
 | |
| 
 | |
|     invoke-virtual {p1, v0, p2, v1, v2}, Landroid/widget/Spinner;->performItemClick(Landroid/view/View;IJ)Z
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$c;->dismiss()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 1
 | |
| 
 | |
|     const-string p1, "AppCompatSpinner"
 | |
| 
 | |
|     const-string v0, "Cannot set popup background for MODE_DIALOG, ignoring"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     return-void
 | |
| .end method
 |