apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatSpinner$DropDownAdapter.smali

320 lines
7.9 KiB
Smali
Raw Normal View History

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