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

1189 lines
34 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/appcompat/widget/AppCompatSpinner;
.super Landroid/widget/Spinner;
.source "AppCompatSpinner.java"
# interfaces
.implements Landroidx/core/view/TintableBackgroundView;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;,
2019-11-15 02:21:15 +00:00
Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;,
Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;,
Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;,
Landroidx/appcompat/widget/AppCompatSpinner$SavedState;
2019-07-24 11:27:29 +00:00
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final ATTRS_ANDROID_SPINNERMODE:[I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final MAX_ITEMS_MEASURED:I = 0xf
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final MODE_DIALOG:I = 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final MODE_DROPDOWN:I = 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final MODE_THEME:I = -0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final TAG:Ljava/lang/String; = "AppCompatSpinner"
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mDropDownWidth:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mForwardingListener:Landroidx/appcompat/widget/ForwardingListener;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mPopupContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mPopupSet:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTempAdapter:Landroid/widget/SpinnerAdapter;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mTempRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 3
const/4 v0, 0x1
new-array v0, v0, [I
const/4 v1, 0x0
const v2, 0x10102f1
aput v2, v0, v1
sput-object v0, Landroidx/appcompat/widget/AppCompatSpinner;->ATTRS_ANDROID_SPINNERMODE:[I
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;I)V
.locals 2
sget v0, Landroidx/appcompat/R$attr;->spinnerStyle:I
const/4 v1, 0x0
invoke-direct {p0, p1, v1, v0, p2}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
sget v0, Landroidx/appcompat/R$attr;->spinnerStyle:I
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
const/4 v0, -0x1
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.locals 6
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
move-object v2, p2
move v3, p3
move v4, p4
invoke-direct/range {v0 .. v5}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILandroid/content/res/Resources$Theme;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILandroid/content/res/Resources$Theme;)V
2019-11-15 02:21:15 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
invoke-direct {p0, p1, p2, p3}, Landroid/widget/Spinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempRect:Landroid/graphics/Rect;
sget-object v0, Landroidx/appcompat/R$styleable;->Spinner:[I
const/4 v1, 0x0
invoke-static {p1, p2, v0, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
move-result-object v0
new-instance v2, Landroidx/appcompat/widget/AppCompatBackgroundHelper;
invoke-direct {v2, p0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;-><init>(Landroid/view/View;)V
iput-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
2019-11-14 21:08:15 +00:00
if-eqz p5, :cond_0
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
new-instance v2, Landroidx/appcompat/view/ContextThemeWrapper;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v2, p1, p5}, Landroidx/appcompat/view/ContextThemeWrapper;-><init>(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V
iput-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
sget p5, Landroidx/appcompat/R$styleable;->Spinner_popupTheme:I
invoke-virtual {v0, p5, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
move-result p5
if-eqz p5, :cond_1
2019-11-15 02:21:15 +00:00
new-instance v2, Landroidx/appcompat/view/ContextThemeWrapper;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v2, p1, p5}, Landroidx/appcompat/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
iput-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
2019-11-14 21:08:15 +00:00
goto :goto_0
2019-11-15 02:21:15 +00:00
:cond_1
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
:goto_0
2019-11-14 21:08:15 +00:00
const/4 p5, -0x1
2019-11-15 02:21:15 +00:00
const/4 v2, 0x0
if-ne p4, p5, :cond_4
2019-07-24 11:27:29 +00:00
:try_start_0
sget-object p5, Landroidx/appcompat/widget/AppCompatSpinner;->ATTRS_ANDROID_SPINNERMODE:[I
invoke-virtual {p1, p2, p5, p3, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p5
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
invoke-virtual {p5, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
2019-11-15 02:21:15 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v3, :cond_2
2019-07-24 11:27:29 +00:00
invoke-virtual {p5, v1, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result p4
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_1
2019-11-15 02:21:15 +00:00
:cond_2
2019-07-24 11:27:29 +00:00
:goto_1
invoke-virtual {p5}, Landroid/content/res/TypedArray;->recycle()V
goto :goto_4
:catch_0
2019-11-15 02:21:15 +00:00
move-exception v3
2019-07-24 11:27:29 +00:00
goto :goto_2
:catchall_0
move-exception p1
move-object p5, v2
goto :goto_3
:catch_1
2019-11-15 02:21:15 +00:00
move-exception v3
2019-07-24 11:27:29 +00:00
move-object p5, v2
:goto_2
:try_start_2
2019-11-15 02:21:15 +00:00
const-string v4, "AppCompatSpinner"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-string v5, "Could not read android:spinnerMode"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {v4, v5, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-07-24 11:27:29 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
2019-11-15 02:21:15 +00:00
if-eqz p5, :cond_4
2019-07-24 11:27:29 +00:00
goto :goto_1
:catchall_1
move-exception p1
:goto_3
2019-11-15 02:21:15 +00:00
if-eqz p5, :cond_3
2019-07-24 11:27:29 +00:00
invoke-virtual {p5}, Landroid/content/res/TypedArray;->recycle()V
2019-11-15 02:21:15 +00:00
:cond_3
2019-07-24 11:27:29 +00:00
throw p1
2019-11-15 02:21:15 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
:goto_4
2019-11-15 02:21:15 +00:00
const/4 p5, 0x1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p4, :cond_6
if-eq p4, p5, :cond_5
goto :goto_5
:cond_5
2019-07-24 11:27:29 +00:00
new-instance p4, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;
2019-11-15 02:21:15 +00:00
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {p4, p0, v3, p2, p3}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;-><init>(Landroidx/appcompat/widget/AppCompatSpinner;Landroid/content/Context;Landroid/util/AttributeSet;I)V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
sget-object v4, Landroidx/appcompat/R$styleable;->Spinner:[I
2019-11-15 02:21:15 +00:00
invoke-static {v3, p2, v4, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget v3, Landroidx/appcompat/R$styleable;->Spinner_android_dropDownWidth:I
2019-07-24 11:27:29 +00:00
const/4 v4, -0x2
2019-11-15 02:21:15 +00:00
invoke-virtual {v1, v3, v4}, Landroidx/appcompat/widget/TintTypedArray;->getLayoutDimension(II)I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput v3, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mDropDownWidth:I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget v3, Landroidx/appcompat/R$styleable;->Spinner_android_popupBackground:I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v1, v3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p4, v3}, Landroidx/appcompat/widget/ListPopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget v3, Landroidx/appcompat/R$styleable;->Spinner_android_prompt:I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v0, v3}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p4, v3}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->setPromptText(Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v1}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object p4, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-instance v1, Landroidx/appcompat/widget/AppCompatSpinner$1;
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v1, p0, p0, p4}, Landroidx/appcompat/widget/AppCompatSpinner$1;-><init>(Landroidx/appcompat/widget/AppCompatSpinner;Landroid/view/View;Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;)V
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iput-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mForwardingListener:Landroidx/appcompat/widget/ForwardingListener;
goto :goto_5
2019-07-24 11:27:29 +00:00
:cond_6
2019-11-15 02:21:15 +00:00
new-instance p4, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;
invoke-direct {p4, p0}, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;-><init>(Landroidx/appcompat/widget/AppCompatSpinner;)V
iput-object p4, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
iget-object p4, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
sget v1, Landroidx/appcompat/R$styleable;->Spinner_android_prompt:I
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-interface {p4, v1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setPromptText(Ljava/lang/CharSequence;)V
:goto_5
2019-07-24 11:27:29 +00:00
sget p4, Landroidx/appcompat/R$styleable;->Spinner_android_entries:I
invoke-virtual {v0, p4}, Landroidx/appcompat/widget/TintTypedArray;->getTextArray(I)[Ljava/lang/CharSequence;
move-result-object p4
if-eqz p4, :cond_7
2019-11-15 02:21:15 +00:00
new-instance v1, Landroid/widget/ArrayAdapter;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const v3, 0x1090008
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v1, p1, v3, p4}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;I[Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
sget p1, Landroidx/appcompat/R$layout;->support_simple_spinner_dropdown_item:I
2019-11-15 02:21:15 +00:00
invoke-virtual {v1, p1}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/AppCompatSpinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V
2019-07-24 11:27:29 +00:00
:cond_7
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-11-15 02:21:15 +00:00
iput-boolean p5, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupSet:Z
2019-07-24 11:27:29 +00:00
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempAdapter:Landroid/widget/SpinnerAdapter;
if-eqz p1, :cond_8
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/AppCompatSpinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V
iput-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempAdapter:Landroid/widget/SpinnerAdapter;
:cond_8
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public compatMeasureContentWidth(Landroid/widget/SpinnerAdapter;Landroid/graphics/drawable/Drawable;)I
2019-07-24 11:27:29 +00:00
.locals 10
const/4 v0, 0x0
if-nez p1, :cond_0
return v0
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getMeasuredWidth()I
2019-07-24 11:27:29 +00:00
move-result v1
invoke-static {v1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getMeasuredHeight()I
2019-07-24 11:27:29 +00:00
move-result v2
invoke-static {v2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getSelectedItemPosition()I
2019-07-24 11:27:29 +00:00
move-result v3
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
move-result v3
invoke-interface {p1}, Landroid/widget/SpinnerAdapter;->getCount()I
move-result v4
add-int/lit8 v5, v3, 0xf
invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int v5, v4, v3
rsub-int/lit8 v5, v5, 0xf
sub-int/2addr v3, v5
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
move-result v3
const/4 v5, 0x0
move-object v7, v5
const/4 v6, 0x0
:goto_0
if-ge v3, v4, :cond_3
invoke-interface {p1, v3}, Landroid/widget/SpinnerAdapter;->getItemViewType(I)I
move-result v8
if-eq v8, v0, :cond_1
move-object v7, v5
move v0, v8
:cond_1
invoke-interface {p1, v3, v7, p0}, Landroid/widget/SpinnerAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
move-result-object v7
invoke-virtual {v7}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v8
if-nez v8, :cond_2
new-instance v8, Landroid/view/ViewGroup$LayoutParams;
const/4 v9, -0x2
invoke-direct {v8, v9, v9}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
invoke-virtual {v7, v8}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
:cond_2
invoke-virtual {v7, v1, v2}, Landroid/view/View;->measure(II)V
invoke-virtual {v7}, Landroid/view/View;->getMeasuredWidth()I
move-result v8
invoke-static {v6, v8}, Ljava/lang/Math;->max(II)I
move-result v6
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_3
if-eqz p2, :cond_4
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempRect:Landroid/graphics/Rect;
invoke-virtual {p2, p1}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempRect:Landroid/graphics/Rect;
2019-12-06 03:29:40 +00:00
iget p2, p1, Landroid/graphics/Rect;->left:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget p1, p1, Landroid/graphics/Rect;->right:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/2addr p2, p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/2addr v6, p2
2019-07-24 11:27:29 +00:00
:cond_4
return v6
.end method
2019-12-06 03:29:40 +00:00
.method public drawableStateChanged()V
2019-07-24 11:27:29 +00:00
.locals 1
invoke-super {p0}, Landroid/widget/Spinner;->drawableStateChanged()V
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->applySupportBackgroundTint()V
:cond_0
return-void
.end method
.method public getDropDownHorizontalOffset()I
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->getHorizontalOffset()I
2019-07-24 11:27:29 +00:00
move-result v0
return v0
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0}, Landroid/widget/Spinner;->getDropDownHorizontalOffset()I
move-result v0
return v0
.end method
.method public getDropDownVerticalOffset()I
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->getVerticalOffset()I
2019-07-24 11:27:29 +00:00
move-result v0
return v0
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0}, Landroid/widget/Spinner;->getDropDownVerticalOffset()I
move-result v0
return v0
.end method
.method public getDropDownWidth()I
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
iget v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mDropDownWidth:I
return v0
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0}, Landroid/widget/Spinner;->getDropDownWidth()I
move-result v0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public final getInternalPopup()Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
return-object v0
.end method
2019-07-24 11:27:29 +00:00
.method public getPopupBackground()Landroid/graphics/drawable/Drawable;
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->getBackground()Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0}, Landroid/widget/Spinner;->getPopupBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
return-object v0
.end method
.method public getPopupContext()Landroid/content/Context;
2019-11-15 02:21:15 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
return-object v0
.end method
.method public getPrompt()Ljava/lang/CharSequence;
.locals 1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->getHintText()Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
invoke-super {p0}, Landroid/widget/Spinner;->getPrompt()Ljava/lang/CharSequence;
move-result-object v0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
move-result-object v0
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-object v0
.end method
.method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
move-result-object v0
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-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public onDetachedFromWindow()V
2019-07-24 11:27:29 +00:00
.locals 1
invoke-super {p0}, Landroid/widget/Spinner;->onDetachedFromWindow()V
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->isShowing()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->dismiss()V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onMeasure(II)V
2019-07-24 11:27:29 +00:00
.locals 2
invoke-super {p0, p1, p2}, Landroid/widget/Spinner;->onMeasure(II)V
2019-11-15 02:21:15 +00:00
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz p2, :cond_0
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result p2
const/high16 v0, -0x80000000
if-ne p2, v0, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getMeasuredWidth()I
2019-07-24 11:27:29 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getAdapter()Landroid/widget/SpinnerAdapter;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getBackground()Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-virtual {p0, v0, v1}, Landroidx/appcompat/widget/AppCompatSpinner;->compatMeasureContentWidth(Landroid/widget/SpinnerAdapter;Landroid/graphics/drawable/Drawable;)I
move-result v0
invoke-static {p2, v0}, Ljava/lang/Math;->max(II)I
move-result p2
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p1
invoke-static {p2, p1}, Ljava/lang/Math;->min(II)I
move-result p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getMeasuredHeight()I
2019-07-24 11:27:29 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, p2}, Landroid/widget/Spinner;->setMeasuredDimension(II)V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
2019-11-15 02:21:15 +00:00
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
.locals 1
check-cast p1, Landroidx/appcompat/widget/AppCompatSpinner$SavedState;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Landroid/view/View$BaseSavedState;->getSuperState()Landroid/os/Parcelable;
2019-11-15 02:21:15 +00:00
move-result-object v0
invoke-super {p0, v0}, Landroid/widget/Spinner;->onRestoreInstanceState(Landroid/os/Parcelable;)V
iget-boolean p1, p1, Landroidx/appcompat/widget/AppCompatSpinner$SavedState;->mShowDropdown:Z
if-eqz p1, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
2019-11-15 02:21:15 +00:00
move-result-object p1
if-eqz p1, :cond_0
new-instance v0, Landroidx/appcompat/widget/AppCompatSpinner$2;
invoke-direct {v0, p0}, Landroidx/appcompat/widget/AppCompatSpinner$2;-><init>(Landroidx/appcompat/widget/AppCompatSpinner;)V
invoke-virtual {p1, v0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
:cond_0
return-void
.end method
.method public onSaveInstanceState()Landroid/os/Parcelable;
.locals 2
new-instance v0, Landroidx/appcompat/widget/AppCompatSpinner$SavedState;
invoke-super {p0}, Landroid/widget/Spinner;->onSaveInstanceState()Landroid/os/Parcelable;
move-result-object v1
invoke-direct {v0, v1}, Landroidx/appcompat/widget/AppCompatSpinner$SavedState;-><init>(Landroid/os/Parcelable;)V
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
if-eqz v1, :cond_0
invoke-interface {v1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->isShowing()Z
move-result v1
if-eqz v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
iput-boolean v1, v0, Landroidx/appcompat/widget/AppCompatSpinner$SavedState;->mShowDropdown:Z
return-object v0
.end method
2019-07-24 11:27:29 +00:00
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mForwardingListener:Landroidx/appcompat/widget/ForwardingListener;
if-eqz v0, :cond_0
invoke-virtual {v0, p0, p1}, Landroidx/appcompat/widget/ForwardingListener;->onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x1
return p1
:cond_0
invoke-super {p0, p1}, Landroid/widget/Spinner;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result p1
return p1
.end method
.method public performClick()Z
.locals 1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
2019-11-15 02:21:15 +00:00
invoke-interface {v0}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->isShowing()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-nez v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner;->showPopup()V
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x1
return v0
:cond_1
invoke-super {p0}, Landroid/widget/Spinner;->performClick()Z
move-result v0
return v0
.end method
.method public bridge synthetic setAdapter(Landroid/widget/Adapter;)V
.locals 0
check-cast p1, Landroid/widget/SpinnerAdapter;
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/AppCompatSpinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V
return-void
.end method
.method public setAdapter(Landroid/widget/SpinnerAdapter;)V
.locals 3
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupSet:Z
if-nez v0, :cond_0
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mTempAdapter:Landroid/widget/SpinnerAdapter;
return-void
:cond_0
invoke-super {p0, p1}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopupContext:Landroid/content/Context;
if-nez v0, :cond_1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
move-result-object v0
:cond_1
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
new-instance v2, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;
invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
invoke-direct {v2, p1, v0}, Landroidx/appcompat/widget/AppCompatSpinner$DropDownAdapter;-><init>(Landroid/widget/SpinnerAdapter;Landroid/content/res/Resources$Theme;)V
2019-11-15 02:21:15 +00:00
invoke-interface {v1, v2}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setAdapter(Landroid/widget/ListAdapter;)V
2019-07-24 11:27:29 +00:00
:cond_2
return-void
.end method
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.locals 1
invoke-super {p0, p1}, Landroid/widget/Spinner;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->onSetBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
return-void
.end method
.method public setBackgroundResource(I)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
invoke-super {p0, p1}, Landroid/widget/Spinner;->setBackgroundResource(I)V
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->onSetBackgroundResource(I)V
:cond_0
return-void
.end method
.method public setDropDownHorizontalOffset(I)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setHorizontalOriginalOffset(I)V
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
invoke-interface {v0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setHorizontalOffset(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0, p1}, Landroid/widget/Spinner;->setDropDownHorizontalOffset(I)V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setDropDownVerticalOffset(I)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setVerticalOffset(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0, p1}, Landroid/widget/Spinner;->setDropDownVerticalOffset(I)V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setDropDownWidth(I)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
iput p1, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mDropDownWidth:I
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0, p1}, Landroid/widget/Spinner;->setDropDownWidth(I)V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setPopupBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-super {p0, p1}, Landroid/widget/Spinner;->setPopupBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setPopupBackgroundResource(I)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner;->getPopupContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object p1
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/AppCompatSpinner;->setPopupBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setPrompt(Ljava/lang/CharSequence;)V
.locals 1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-11-15 02:21:15 +00:00
invoke-interface {v0, p1}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->setPromptText(Ljava/lang/CharSequence;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
invoke-super {p0, p1}, Landroid/widget/Spinner;->setPrompt(Ljava/lang/CharSequence;)V
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/res/ColorStateList;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
:cond_0
return-void
.end method
.method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/graphics/PorterDuff$Mode;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
:cond_0
return-void
.end method
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.method public showPopup()V
2019-11-15 02:21:15 +00:00
.locals 3
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner;->mPopup:Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getTextDirection()I
2019-11-15 02:21:15 +00:00
move-result v1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/Spinner;->getTextAlignment()I
2019-11-15 02:21:15 +00:00
move-result v2
invoke-interface {v0, v1, v2}, Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;->show(II)V
return-void
.end method