459 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			459 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/appcompat/widget/AppCompatSpinner$e;
 | |
| .super Landroidx/appcompat/widget/ListPopupWindow;
 | |
| .source "AppCompatSpinner.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Landroidx/appcompat/widget/AppCompatSpinner$f;
 | |
| 
 | |
| 
 | |
| # 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 = "e"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final A1:Landroid/graphics/Rect;
 | |
| 
 | |
| .field public B1:I
 | |
| 
 | |
| .field public final synthetic C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
| .field public y1:Ljava/lang/CharSequence;
 | |
| 
 | |
| .field public z1:Landroid/widget/ListAdapter;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroidx/appcompat/widget/AppCompatSpinner;Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, p2, p3, p4}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p2, Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/graphics/Rect;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->A1:Landroid/graphics/Rect;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ListPopupWindow;->Q(Landroid/view/View;)V
 | |
| 
 | |
|     const/4 p2, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, p2}, Landroidx/appcompat/widget/ListPopupWindow;->b0(Z)V
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p2}, Landroidx/appcompat/widget/ListPopupWindow;->h0(I)V
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p2, Landroidx/appcompat/widget/AppCompatSpinner$e$a;
 | |
| 
 | |
|     invoke-direct {p2, p0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$e$a;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$e;Landroidx/appcompat/widget/AppCompatSpinner;)V
 | |
| 
 | |
|     invoke-virtual {p0, p2}, Landroidx/appcompat/widget/ListPopupWindow;->d0(Landroid/widget/AdapterView$OnItemClickListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic n0(Landroidx/appcompat/widget/AppCompatSpinner$e;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Landroidx/appcompat/widget/ListPopupWindow;->show()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public f()Ljava/lang/CharSequence;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->y1:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public h(Ljava/lang/CharSequence;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->y1:Ljava/lang/CharSequence;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public j(I)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->B1:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public k(II)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->a()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$e;->o0()V
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->Y(I)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-super {p0}, Landroidx/appcompat/widget/ListPopupWindow;->show()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->d()Landroid/widget/ListView;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v1, v2}, Landroid/widget/ListView;->setChoiceMode(I)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v1, p1}, Landroid/widget/ListView;->setTextDirection(I)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v1, p2}, Landroid/widget/ListView;->setTextAlignment(I)V
 | |
| 
 | |
|     .line 9
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/widget/Spinner;->getSelectedItemPosition()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ListPopupWindow;->j0(I)V
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 10
 | |
|     :cond_0
 | |
|     iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/widget/Spinner;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 11
 | |
|     new-instance p2, Landroidx/appcompat/widget/AppCompatSpinner$e$b;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Landroidx/appcompat/widget/AppCompatSpinner$e$b;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$e;)V
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p1, p2}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     .line 13
 | |
|     new-instance p1, Landroidx/appcompat/widget/AppCompatSpinner$e$c;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Landroidx/appcompat/widget/AppCompatSpinner$e$c;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$e;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ListPopupWindow;->c0(Landroid/widget/PopupWindow$OnDismissListener;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public m()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->B1:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public n(Landroid/widget/ListAdapter;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroidx/appcompat/widget/ListPopupWindow;->n(Landroid/widget/ListAdapter;)V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->z1:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public o0()V
 | |
|     .locals 8
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->g()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget-object v1, v1, Landroidx/appcompat/widget/AppCompatSpinner;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-static {v0}, Landroidx/appcompat/widget/p0;->b(Landroid/view/View;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget-object v0, v0, Landroidx/appcompat/widget/AppCompatSpinner;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     iget v0, v0, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget-object v0, v0, Landroidx/appcompat/widget/AppCompatSpinner;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     iget v0, v0, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     neg-int v0, v0
 | |
| 
 | |
|     :goto_0
 | |
|     move v1, v0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget-object v0, v0, Landroidx/appcompat/widget/AppCompatSpinner;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     iput v1, v0, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     iput v1, v0, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     .line 6
 | |
|     :goto_1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/Spinner;->getPaddingLeft()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/widget/Spinner;->getPaddingRight()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v3, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/widget/Spinner;->getWidth()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     .line 9
 | |
|     iget-object v4, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget v5, v4, Landroidx/appcompat/widget/AppCompatSpinner;->g:I
 | |
| 
 | |
|     const/4 v6, -0x2
 | |
| 
 | |
|     if-ne v5, v6, :cond_3
 | |
| 
 | |
|     .line 10
 | |
|     iget-object v5, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->z1:Landroid/widget/ListAdapter;
 | |
| 
 | |
|     check-cast v5, Landroid/widget/SpinnerAdapter;
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->g()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {v4, v5, v6}, Landroidx/appcompat/widget/AppCompatSpinner;->a(Landroid/widget/SpinnerAdapter;Landroid/graphics/drawable/Drawable;)I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     .line 13
 | |
|     iget-object v5, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-virtual {v5}, Landroid/widget/Spinner;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     .line 14
 | |
|     invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     iget v5, v5, Landroid/util/DisplayMetrics;->widthPixels:I
 | |
| 
 | |
|     iget-object v6, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     iget-object v6, v6, Landroidx/appcompat/widget/AppCompatSpinner;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     iget v7, v6, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     sub-int/2addr v5, v7
 | |
| 
 | |
|     iget v6, v6, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     sub-int/2addr v5, v6
 | |
| 
 | |
|     if-le v4, v5, :cond_2
 | |
| 
 | |
|     move v4, v5
 | |
| 
 | |
|     :cond_2
 | |
|     sub-int v5, v3, v0
 | |
| 
 | |
|     sub-int/2addr v5, v2
 | |
| 
 | |
|     .line 15
 | |
|     invoke-static {v4, v5}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     invoke-virtual {p0, v4}, Landroidx/appcompat/widget/ListPopupWindow;->S(I)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_3
 | |
|     const/4 v4, -0x1
 | |
| 
 | |
|     if-ne v5, v4, :cond_4
 | |
| 
 | |
|     sub-int v4, v3, v0
 | |
| 
 | |
|     sub-int/2addr v4, v2
 | |
| 
 | |
|     .line 16
 | |
|     invoke-virtual {p0, v4}, Landroidx/appcompat/widget/ListPopupWindow;->S(I)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 17
 | |
|     :cond_4
 | |
|     invoke-virtual {p0, v5}, Landroidx/appcompat/widget/ListPopupWindow;->S(I)V
 | |
| 
 | |
|     .line 18
 | |
|     :goto_2
 | |
|     iget-object v4, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->C1:Landroidx/appcompat/widget/AppCompatSpinner;
 | |
| 
 | |
|     invoke-static {v4}, Landroidx/appcompat/widget/p0;->b(Landroid/view/View;)Z
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-eqz v4, :cond_5
 | |
| 
 | |
|     sub-int/2addr v3, v2
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->F()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     sub-int/2addr v3, v0
 | |
| 
 | |
|     .line 20
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$e;->m()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     sub-int/2addr v3, v0
 | |
| 
 | |
|     add-int/2addr v3, v1
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     .line 21
 | |
|     :cond_5
 | |
|     invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$e;->m()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     add-int/2addr v2, v0
 | |
| 
 | |
|     add-int v3, v2, v1
 | |
| 
 | |
|     .line 22
 | |
|     :goto_3
 | |
|     invoke-virtual {p0, v3}, Landroidx/appcompat/widget/ListPopupWindow;->e(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public p0(Landroid/view/View;)Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Landroidx/core/view/ViewCompat;->O0(Landroid/view/View;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$e;->A1:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p1
 | |
| .end method
 |