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

313 lines
7.1 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;
2019-07-24 11:27:29 +00:00
.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;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = "DropDownAdapter"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mAdapter:Landroid/widget/SpinnerAdapter;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mListAdapter:Landroid/widget/ListAdapter;
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Landroid/widget/SpinnerAdapter;Landroid/content/res/Resources$Theme;)V
.locals 2
2019-12-06 03:29:40 +00:00
.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
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()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
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_2
2019-07-24 11:27:29 +00:00
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x17
2019-12-06 03:29:40 +00:00
if-lt v0, v1, :cond_1
2019-07-24 11:27:29 +00:00
instance-of v0, p1, Landroid/widget/ThemedSpinnerAdapter;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
check-cast p1, Landroid/widget/ThemedSpinnerAdapter;
invoke-interface {p1}, Landroid/widget/ThemedSpinnerAdapter;->getDropDownViewTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
2019-12-06 03:29:40 +00:00
if-eq v0, p2, :cond_2
2019-07-24 11:27:29 +00:00
invoke-interface {p1, p2}, Landroid/widget/ThemedSpinnerAdapter;->setDropDownViewTheme(Landroid/content/res/Resources$Theme;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
2019-07-24 11:27:29 +00:00
instance-of v0, p1, Landroidx/appcompat/widget/ThemedSpinnerAdapter;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_2
2019-07-24 11:27:29 +00:00
check-cast p1, Landroidx/appcompat/widget/ThemedSpinnerAdapter;
invoke-interface {p1}, Landroidx/appcompat/widget/ThemedSpinnerAdapter;->getDropDownViewTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_2
2019-07-24 11:27:29 +00:00
invoke-interface {p1, p2}, Landroidx/appcompat/widget/ThemedSpinnerAdapter;->setDropDownViewTheme(Landroid/content/res/Resources$Theme;)V
2019-12-06 03:29:40 +00:00
:cond_2
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
invoke-interface {v0}, Landroid/widget/SpinnerAdapter;->getCount()I
move-result v0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
: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
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->getItem(I)Ljava/lang/Object;
move-result-object p1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
invoke-interface {v0, p1}, Landroid/widget/SpinnerAdapter;->getItemId(I)J
move-result-wide v0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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