.class Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter; .super Ljava/lang/Object; .source "AppCompatSpinner.java" # interfaces .implements Landroid/widget/ListAdapter; .implements Landroid/widget/SpinnerAdapter; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/appcompat/widget/AppCompatSpinner; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = "DropDownAdapter" .end annotation # instance fields .field private mAdapter:Landroid/widget/SpinnerAdapter; .field private mListAdapter:Landroid/widget/ListAdapter; # direct methods .method public constructor (Landroid/widget/SpinnerAdapter;Landroid/content/res/Resources$Theme;)V .locals 2 .param p1 # Landroid/widget/SpinnerAdapter; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # Landroid/content/res/Resources$Theme; .annotation build Landroidx/annotation/Nullable; .end annotation .end param invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; instance-of v0, p1, Landroid/widget/ListAdapter; if-eqz v0, :cond_0 move-object v0, p1 check-cast v0, Landroid/widget/ListAdapter; iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mListAdapter:Landroid/widget/ListAdapter; :cond_0 if-eqz p2, :cond_3 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x17 if-lt v0, v1, :cond_2 instance-of v0, p1, Landroid/widget/ThemedSpinnerAdapter; if-eqz v0, :cond_2 check-cast p1, Landroid/widget/ThemedSpinnerAdapter; invoke-interface {p1}, Landroid/widget/ThemedSpinnerAdapter;->getDropDownViewTheme()Landroid/content/res/Resources$Theme; move-result-object v0 if-eq v0, p2, :cond_1 invoke-interface {p1, p2}, Landroid/widget/ThemedSpinnerAdapter;->setDropDownViewTheme(Landroid/content/res/Resources$Theme;)V :cond_1 return-void :cond_2 instance-of v0, p1, Landroidx/appcompat/widget/ThemedSpinnerAdapter; if-eqz v0, :cond_3 check-cast p1, Landroidx/appcompat/widget/ThemedSpinnerAdapter; invoke-interface {p1}, Landroidx/appcompat/widget/ThemedSpinnerAdapter;->getDropDownViewTheme()Landroid/content/res/Resources$Theme; move-result-object v0 if-nez v0, :cond_3 invoke-interface {p1, p2}, Landroidx/appcompat/widget/ThemedSpinnerAdapter;->setDropDownViewTheme(Landroid/content/res/Resources$Theme;)V :cond_3 return-void .end method # virtual methods .method public areAllItemsEnabled()Z .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mListAdapter:Landroid/widget/ListAdapter; if-eqz v0, :cond_0 invoke-interface {v0}, Landroid/widget/ListAdapter;->areAllItemsEnabled()Z move-result v0 return v0 :cond_0 const/4 v0, 0x1 return v0 .end method .method public getCount()I .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-nez v0, :cond_0 const/4 v0, 0x0 return v0 :cond_0 invoke-interface {v0}, Landroid/widget/SpinnerAdapter;->getCount()I move-result v0 return v0 .end method .method public getDropDownView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View; .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-nez v0, :cond_0 const/4 p1, 0x0 return-object p1 :cond_0 invoke-interface {v0, p1, p2, p3}, Landroid/widget/SpinnerAdapter;->getDropDownView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View; move-result-object p1 return-object p1 .end method .method public getItem(I)Ljava/lang/Object; .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-nez v0, :cond_0 const/4 p1, 0x0 return-object p1 :cond_0 invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->getItem(I)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public getItemId(I)J .locals 2 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-nez v0, :cond_0 const-wide/16 v0, -0x1 return-wide v0 :cond_0 invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->getItemId(I)J move-result-wide v0 return-wide v0 .end method .method public getItemViewType(I)I .locals 0 const/4 p1, 0x0 return p1 .end method .method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View; .locals 0 invoke-virtual {p0, p1, p2, p3}, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->getDropDownView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View; move-result-object p1 return-object p1 .end method .method public getViewTypeCount()I .locals 1 const/4 v0, 0x1 return v0 .end method .method public hasStableIds()Z .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-eqz v0, :cond_0 invoke-interface {v0}, Landroid/widget/SpinnerAdapter;->hasStableIds()Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x1 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public isEmpty()Z .locals 1 invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->getCount()I move-result v0 if-nez v0, :cond_0 const/4 v0, 0x1 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public isEnabled(I)Z .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mListAdapter:Landroid/widget/ListAdapter; if-eqz v0, :cond_0 invoke-interface {v0, p1}, Landroid/widget/ListAdapter;->isEnabled(I)Z move-result p1 return p1 :cond_0 const/4 p1, 0x1 return p1 .end method .method public registerDataSetObserver(Landroid/database/DataSetObserver;)V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-eqz v0, :cond_0 invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->registerDataSetObserver(Landroid/database/DataSetObserver;)V :cond_0 return-void .end method .method public unregisterDataSetObserver(Landroid/database/DataSetObserver;)V .locals 1 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;->mAdapter:Landroid/widget/SpinnerAdapter; if-eqz v0, :cond_0 invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->unregisterDataSetObserver(Landroid/database/DataSetObserver;)V :cond_0 return-void .end method