apkfuckery/com.discord/smali/androidx/appcompat/app/AlertController.smali

1834 lines
51 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/app/AlertController;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "AlertController.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/app/AlertController$CheckedItemAdapter;,
Landroidx/appcompat/app/AlertController$AlertParams;,
Landroidx/appcompat/app/AlertController$RecycleListView;,
Landroidx/appcompat/app/AlertController$ButtonHandler;
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mAdapter:Landroid/widget/ListAdapter;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mAlertDialogLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mButtonHandler:Landroid/view/View$OnClickListener;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mButtonIconDimen:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNegative:Landroid/widget/Button;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNegativeMessage:Landroid/os/Message;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNegativeText:Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNeutral:Landroid/widget/Button;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNeutralMessage:Landroid/os/Message;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonNeutralText:Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPanelLayoutHint:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPanelSideLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPositive:Landroid/widget/Button;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPositiveMessage:Landroid/os/Message;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mButtonPositiveText:Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mCheckedItem:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mCustomTitleView:Landroid/view/View;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mDialog:Landroidx/appcompat/app/AppCompatDialog;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mHandler:Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIcon:Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIconId:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIconView:Landroid/widget/ImageView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mListItemLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mListLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mListView:Landroid/widget/ListView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mMessage:Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mMessageView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mMultiChoiceItemLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mScrollView:Landroidx/core/widget/NestedScrollView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mShowTitle:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mSingleChoiceItemLayout:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTitle:Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTitleView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mView:Landroid/view/View;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewLayoutResId:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewSpacingBottom:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewSpacingLeft:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewSpacingRight:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewSpacingSpecified:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mViewSpacingTop:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mWindow:Landroid/view/Window;
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroidx/appcompat/app/AppCompatDialog;Landroid/view/Window;)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingSpecified:Z
iput v0, p0, Landroidx/appcompat/app/AlertController;->mIconId:I
const/4 v1, -0x1
iput v1, p0, Landroidx/appcompat/app/AlertController;->mCheckedItem:I
iput v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPanelLayoutHint:I
new-instance v1, Landroidx/appcompat/app/AlertController$1;
invoke-direct {v1, p0}, Landroidx/appcompat/app/AlertController$1;-><init>(Landroidx/appcompat/app/AlertController;)V
iput-object v1, p0, Landroidx/appcompat/app/AlertController;->mButtonHandler:Landroid/view/View$OnClickListener;
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mContext:Landroid/content/Context;
iput-object p2, p0, Landroidx/appcompat/app/AlertController;->mDialog:Landroidx/appcompat/app/AppCompatDialog;
iput-object p3, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
new-instance p3, Landroidx/appcompat/app/AlertController$ButtonHandler;
invoke-direct {p3, p2}, Landroidx/appcompat/app/AlertController$ButtonHandler;-><init>(Landroid/content/DialogInterface;)V
iput-object p3, p0, Landroidx/appcompat/app/AlertController;->mHandler:Landroid/os/Handler;
sget-object p3, Landroidx/appcompat/R$styleable;->AlertDialog:[I
sget v1, Landroidx/appcompat/R$attr;->alertDialogStyle:I
const/4 v2, 0x0
invoke-virtual {p1, v2, p3, v1, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_android_layout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mAlertDialogLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_buttonPanelSideLayout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mButtonPanelSideLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_listLayout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mListLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_multiChoiceItemLayout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mMultiChoiceItemLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_singleChoiceItemLayout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mSingleChoiceItemLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_listItemLayout:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mListItemLayout:I
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_showTitle:I
const/4 v1, 0x1
invoke-virtual {p1, p3, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result p3
iput-boolean p3, p0, Landroidx/appcompat/app/AlertController;->mShowTitle:Z
sget p3, Landroidx/appcompat/R$styleable;->AlertDialog_buttonIconDimen:I
invoke-virtual {p1, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p3
iput p3, p0, Landroidx/appcompat/app/AlertController;->mButtonIconDimen:I
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
invoke-virtual {p2, v1}, Landroidx/appcompat/app/AppCompatDialog;->supportRequestWindowFeature(I)Z
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static canTextInput(Landroid/view/View;)Z
2019-07-24 11:27:29 +00:00
.locals 4
invoke-virtual {p0}, Landroid/view/View;->onCheckIsTextEditor()Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
instance-of v0, p0, Landroid/view/ViewGroup;
const/4 v2, 0x0
if-nez v0, :cond_1
return v2
:cond_1
check-cast p0, Landroid/view/ViewGroup;
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v0
:cond_2
if-lez v0, :cond_3
add-int/lit8 v0, v0, -0x1
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v3
invoke-static {v3}, Landroidx/appcompat/app/AlertController;->canTextInput(Landroid/view/View;)Z
move-result v3
if-eqz v3, :cond_2
return v1
:cond_3
return v2
.end method
.method private centerButton(Landroid/widget/Button;)V
.locals 2
invoke-virtual {p1}, Landroid/widget/Button;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout$LayoutParams;
const/4 v1, 0x1
iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I
const/high16 v1, 0x3f000000 # 0.5f
iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->weight:F
invoke-virtual {p1, v0}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static manageScrollIndicators(Landroid/view/View;Landroid/view/View;Landroid/view/View;)V
2019-07-24 11:27:29 +00:00
.locals 3
const/4 v0, 0x0
const/4 v1, 0x4
if-eqz p1, :cond_1
const/4 v2, -0x1
invoke-virtual {p0, v2}, Landroid/view/View;->canScrollVertically(I)Z
move-result v2
if-eqz v2, :cond_0
const/4 v2, 0x0
goto :goto_0
:cond_0
const/4 v2, 0x4
:goto_0
invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V
:cond_1
if-eqz p2, :cond_3
const/4 p1, 0x1
invoke-virtual {p0, p1}, Landroid/view/View;->canScrollVertically(I)Z
move-result p0
if-eqz p0, :cond_2
goto :goto_1
:cond_2
const/4 v0, 0x4
:goto_1
invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V
:cond_3
return-void
.end method
.method private resolvePanel(Landroid/view/View;Landroid/view/View;)Landroid/view/ViewGroup;
.locals 2
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
2019-07-24 11:27:29 +00:00
if-nez p1, :cond_1
instance-of p1, p2, Landroid/view/ViewStub;
if-eqz p1, :cond_0
check-cast p2, Landroid/view/ViewStub;
invoke-virtual {p2}, Landroid/view/ViewStub;->inflate()Landroid/view/View;
move-result-object p2
:cond_0
check-cast p2, Landroid/view/ViewGroup;
return-object p2
:cond_1
if-eqz p2, :cond_2
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v0
instance-of v1, v0, Landroid/view/ViewGroup;
if-eqz v1, :cond_2
check-cast v0, Landroid/view/ViewGroup;
invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:cond_2
instance-of p2, p1, Landroid/view/ViewStub;
if-eqz p2, :cond_3
check-cast p1, Landroid/view/ViewStub;
invoke-virtual {p1}, Landroid/view/ViewStub;->inflate()Landroid/view/View;
move-result-object p1
:cond_3
check-cast p1, Landroid/view/ViewGroup;
return-object p1
.end method
.method private selectContentView()I
.locals 3
iget v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPanelSideLayout:I
if-nez v0, :cond_0
iget v0, p0, Landroidx/appcompat/app/AlertController;->mAlertDialogLayout:I
return v0
:cond_0
iget v1, p0, Landroidx/appcompat/app/AlertController;->mButtonPanelLayoutHint:I
const/4 v2, 0x1
if-ne v1, v2, :cond_1
return v0
:cond_1
iget v0, p0, Landroidx/appcompat/app/AlertController;->mAlertDialogLayout:I
return v0
.end method
.method private setScrollIndicators(Landroid/view/ViewGroup;Landroid/view/View;II)V
.locals 4
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v1, Landroidx/appcompat/R$id;->scrollIndicatorUp:I
invoke-virtual {v0, v1}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v0
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v2, Landroidx/appcompat/R$id;->scrollIndicatorDown:I
invoke-virtual {v1, v2}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v1
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x17
if-lt v2, v3, :cond_1
invoke-static {p2, p3, p4}, Landroidx/core/view/ViewCompat;->setScrollIndicators(Landroid/view/View;II)V
if-eqz v0, :cond_0
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:cond_0
if-eqz v1, :cond_8
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_1
const/4 p2, 0x0
if-eqz v0, :cond_2
and-int/lit8 p4, p3, 0x1
if-nez p4, :cond_2
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
move-object v0, p2
:cond_2
if-eqz v1, :cond_3
and-int/lit8 p3, p3, 0x2
if-nez p3, :cond_3
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
goto :goto_0
:cond_3
move-object p2, v1
:goto_0
if-nez v0, :cond_4
if-eqz p2, :cond_8
:cond_4
iget-object p3, p0, Landroidx/appcompat/app/AlertController;->mMessage:Ljava/lang/CharSequence;
if-eqz p3, :cond_5
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
new-instance p3, Landroidx/appcompat/app/AlertController$2;
invoke-direct {p3, p0, v0, p2}, Landroidx/appcompat/app/AlertController$2;-><init>(Landroidx/appcompat/app/AlertController;Landroid/view/View;Landroid/view/View;)V
invoke-virtual {p1, p3}, Landroidx/core/widget/NestedScrollView;->setOnScrollChangeListener(Landroidx/core/widget/NestedScrollView$OnScrollChangeListener;)V
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
new-instance p3, Landroidx/appcompat/app/AlertController$3;
invoke-direct {p3, p0, v0, p2}, Landroidx/appcompat/app/AlertController$3;-><init>(Landroidx/appcompat/app/AlertController;Landroid/view/View;Landroid/view/View;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p3}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_5
iget-object p3, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
if-eqz p3, :cond_6
new-instance p1, Landroidx/appcompat/app/AlertController$4;
invoke-direct {p1, p0, v0, p2}, Landroidx/appcompat/app/AlertController$4;-><init>(Landroidx/appcompat/app/AlertController;Landroid/view/View;Landroid/view/View;)V
invoke-virtual {p3, p1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
new-instance p3, Landroidx/appcompat/app/AlertController$5;
invoke-direct {p3, p0, v0, p2}, Landroidx/appcompat/app/AlertController$5;-><init>(Landroidx/appcompat/app/AlertController;Landroid/view/View;Landroid/view/View;)V
invoke-virtual {p1, p3}, Landroid/widget/ListView;->post(Ljava/lang/Runnable;)Z
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_6
if-eqz v0, :cond_7
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:cond_7
if-eqz p2, :cond_8
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:cond_8
2019-12-06 03:29:40 +00:00
:goto_1
2019-07-24 11:27:29 +00:00
return-void
.end method
.method private setupButtons(Landroid/view/ViewGroup;)V
.locals 7
const v0, 0x1020019
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mButtonHandler:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveText:Ljava/lang/CharSequence;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
const/4 v1, 0x1
const/16 v2, 0x8
const/4 v3, 0x0
const/4 v4, 0x0
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V
const/4 v0, 0x0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveText:Ljava/lang/CharSequence;
invoke-virtual {v0, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_1
iget v5, p0, Landroidx/appcompat/app/AlertController;->mButtonIconDimen:I
invoke-virtual {v0, v4, v4, v5, v5}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
invoke-virtual {v0, v5, v3, v3, v3}, Landroid/widget/Button;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
:cond_1
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V
const/4 v0, 0x1
:goto_0
const v5, 0x102001a
invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v5
check-cast v5, Landroid/widget/Button;
iput-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonHandler:Landroid/view/View$OnClickListener;
invoke-virtual {v5, v6}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeText:Ljava/lang/CharSequence;
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-eqz v5, :cond_2
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
if-nez v5, :cond_2
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
invoke-virtual {v5, v2}, Landroid/widget/Button;->setVisibility(I)V
goto :goto_1
:cond_2
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeText:Ljava/lang/CharSequence;
invoke-virtual {v5, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
if-eqz v5, :cond_3
iget v6, p0, Landroidx/appcompat/app/AlertController;->mButtonIconDimen:I
invoke-virtual {v5, v4, v4, v6, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
invoke-virtual {v5, v6, v3, v3, v3}, Landroid/widget/Button;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
:cond_3
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
invoke-virtual {v5, v4}, Landroid/widget/Button;->setVisibility(I)V
or-int/lit8 v0, v0, 0x2
:goto_1
const v5, 0x102001b
invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v5
check-cast v5, Landroid/widget/Button;
iput-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonHandler:Landroid/view/View$OnClickListener;
invoke-virtual {v5, v6}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-eqz v5, :cond_4
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
if-nez v5, :cond_4
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
invoke-virtual {v3, v2}, Landroid/widget/Button;->setVisibility(I)V
goto :goto_2
:cond_4
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;
invoke-virtual {v5, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
if-eqz v5, :cond_5
iget v6, p0, Landroidx/appcompat/app/AlertController;->mButtonIconDimen:I
invoke-virtual {v5, v4, v4, v6, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
iget-object v5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
iget-object v6, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
invoke-virtual {v5, v6, v3, v3, v3}, Landroid/widget/Button;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
:cond_5
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
invoke-virtual {v3, v4}, Landroid/widget/Button;->setVisibility(I)V
or-int/lit8 v0, v0, 0x4
:goto_2
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mContext:Landroid/content/Context;
invoke-static {v3}, Landroidx/appcompat/app/AlertController;->shouldCenterSingleButton(Landroid/content/Context;)Z
move-result v3
if-eqz v3, :cond_8
if-ne v0, v1, :cond_6
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
invoke-direct {p0, v3}, Landroidx/appcompat/app/AlertController;->centerButton(Landroid/widget/Button;)V
goto :goto_3
:cond_6
const/4 v3, 0x2
if-ne v0, v3, :cond_7
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
invoke-direct {p0, v3}, Landroidx/appcompat/app/AlertController;->centerButton(Landroid/widget/Button;)V
goto :goto_3
:cond_7
const/4 v3, 0x4
if-ne v0, v3, :cond_8
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
invoke-direct {p0, v3}, Landroidx/appcompat/app/AlertController;->centerButton(Landroid/widget/Button;)V
:cond_8
:goto_3
if-eqz v0, :cond_9
goto :goto_4
:cond_9
const/4 v1, 0x0
:goto_4
if-nez v1, :cond_a
invoke-virtual {p1, v2}, Landroid/view/ViewGroup;->setVisibility(I)V
:cond_a
return-void
.end method
.method private setupContent(Landroid/view/ViewGroup;)V
.locals 4
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v1, Landroidx/appcompat/R$id;->scrollView:I
invoke-virtual {v0, v1}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/core/widget/NestedScrollView;
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
const/4 v1, 0x0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusable(Z)V
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
invoke-virtual {v0, v1}, Landroidx/core/widget/NestedScrollView;->setNestedScrollingEnabled(Z)V
const v0, 0x102000b
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mMessageView:Landroid/widget/TextView;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mMessageView:Landroid/widget/TextView;
if-nez v0, :cond_0
return-void
:cond_0
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mMessage:Ljava/lang/CharSequence;
if-eqz v1, :cond_1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_1
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
iget-object v2, p0, Landroidx/appcompat/app/AlertController;->mMessageView:Landroid/widget/TextView;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
if-eqz v0, :cond_2
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
2019-07-24 11:27:29 +00:00
move-result-object p1
check-cast p1, Landroid/view/ViewGroup;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
move-result v0
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeViewAt(I)V
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
new-instance v2, Landroid/view/ViewGroup$LayoutParams;
const/4 v3, -0x1
invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
invoke-virtual {p1, v1, v0, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_2
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setVisibility(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 private setupCustomContent(Landroid/view/ViewGroup;)V
.locals 5
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mView:Landroid/view/View;
const/4 v1, 0x0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
iget v0, p0, Landroidx/appcompat/app/AlertController;->mViewLayoutResId:I
if-eqz v0, :cond_1
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mContext:Landroid/content/Context;
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
iget v2, p0, Landroidx/appcompat/app/AlertController;->mViewLayoutResId:I
invoke-virtual {v0, v2, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v0
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_2
const/4 v1, 0x1
:cond_2
if-eqz v1, :cond_3
invoke-static {v0}, Landroidx/appcompat/app/AlertController;->canTextInput(Landroid/view/View;)Z
move-result v2
if-nez v2, :cond_4
:cond_3
iget-object v2, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
const/high16 v3, 0x20000
invoke-virtual {v2, v3, v3}, Landroid/view/Window;->setFlags(II)V
:cond_4
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_6
2019-07-24 11:27:29 +00:00
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v2, Landroidx/appcompat/R$id;->custom:I
invoke-virtual {v1, v2}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v1
check-cast v1, Landroid/widget/FrameLayout;
new-instance v2, Landroid/view/ViewGroup$LayoutParams;
const/4 v3, -0x1
invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
invoke-virtual {v1, v0, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
iget-boolean v0, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingSpecified:Z
if-eqz v0, :cond_5
iget v0, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingLeft:I
iget v2, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingTop:I
iget v3, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingRight:I
iget v4, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingBottom:I
invoke-virtual {v1, v0, v2, v3, v4}, Landroid/widget/FrameLayout;->setPadding(IIII)V
:cond_5
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_7
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object p1
check-cast p1, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;
const/4 v0, 0x0
iput v0, p1, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;->weight:F
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_6
2019-07-24 11:27:29 +00:00
const/16 v0, 0x8
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V
2019-12-06 03:29:40 +00:00
:cond_7
:goto_1
2019-07-24 11:27:29 +00:00
return-void
.end method
.method private setupTitle(Landroid/view/ViewGroup;)V
.locals 5
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mCustomTitleView:Landroid/view/View;
const/16 v1, 0x8
if-eqz v0, :cond_0
new-instance v0, Landroid/view/ViewGroup$LayoutParams;
const/4 v2, -0x1
const/4 v3, -0x2
invoke-direct {v0, v2, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
iget-object v2, p0, Landroidx/appcompat/app/AlertController;->mCustomTitleView:Landroid/view/View;
const/4 v3, 0x0
invoke-virtual {p1, v2, v3, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v0, Landroidx/appcompat/R$id;->title_template:I
invoke-virtual {p1, v0}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object p1
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V
2019-12-06 03:29:40 +00:00
goto/16 :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
const v2, 0x1020006
invoke-virtual {v0, v2}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mTitle:Ljava/lang/CharSequence;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_3
iget-boolean v0, p0, Landroidx/appcompat/app/AlertController;->mShowTitle:Z
if-eqz v0, :cond_3
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v0, Landroidx/appcompat/R$id;->alertTitle:I
invoke-virtual {p1, v0}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mTitleView:Landroid/widget/TextView;
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mTitleView:Landroid/widget/TextView;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mTitle:Ljava/lang/CharSequence;
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
iget p1, p0, Landroidx/appcompat/app/AlertController;->mIconId:I
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_1
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_2
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_2
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mTitleView:Landroid/widget/TextView;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getPaddingLeft()I
move-result v0
iget-object v2, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v2}, Landroid/widget/ImageView;->getPaddingTop()I
move-result v2
iget-object v3, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v3}, Landroid/widget/ImageView;->getPaddingRight()I
move-result v3
iget-object v4, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v4}, Landroid/widget/ImageView;->getPaddingBottom()I
move-result v4
invoke-virtual {p1, v0, v2, v3, v4}, Landroid/widget/TextView;->setPadding(IIII)V
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_3
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v2, Landroidx/appcompat/R$id;->title_template:I
invoke-virtual {v0, v2}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setVisibility(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 private setupView()V
.locals 9
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
sget v1, Landroidx/appcompat/R$id;->parentPanel:I
invoke-virtual {v0, v1}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
move-result-object v0
sget v1, Landroidx/appcompat/R$id;->topPanel:I
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
sget v2, Landroidx/appcompat/R$id;->contentPanel:I
invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v2
sget v3, Landroidx/appcompat/R$id;->buttonPanel:I
invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v3
sget v4, Landroidx/appcompat/R$id;->customPanel:I
invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
invoke-direct {p0, v0}, Landroidx/appcompat/app/AlertController;->setupCustomContent(Landroid/view/ViewGroup;)V
sget v4, Landroidx/appcompat/R$id;->topPanel:I
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v4
sget v5, Landroidx/appcompat/R$id;->contentPanel:I
invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v5
sget v6, Landroidx/appcompat/R$id;->buttonPanel:I
invoke-virtual {v0, v6}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v6
invoke-direct {p0, v4, v1}, Landroidx/appcompat/app/AlertController;->resolvePanel(Landroid/view/View;Landroid/view/View;)Landroid/view/ViewGroup;
move-result-object v1
invoke-direct {p0, v5, v2}, Landroidx/appcompat/app/AlertController;->resolvePanel(Landroid/view/View;Landroid/view/View;)Landroid/view/ViewGroup;
move-result-object v2
invoke-direct {p0, v6, v3}, Landroidx/appcompat/app/AlertController;->resolvePanel(Landroid/view/View;Landroid/view/View;)Landroid/view/ViewGroup;
move-result-object v3
invoke-direct {p0, v2}, Landroidx/appcompat/app/AlertController;->setupContent(Landroid/view/ViewGroup;)V
invoke-direct {p0, v3}, Landroidx/appcompat/app/AlertController;->setupButtons(Landroid/view/ViewGroup;)V
invoke-direct {p0, v1}, Landroidx/appcompat/app/AlertController;->setupTitle(Landroid/view/ViewGroup;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I
move-result v0
2019-07-24 11:27:29 +00:00
const/16 v4, 0x8
const/4 v5, 0x1
const/4 v6, 0x0
if-eq v0, v4, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v1, :cond_1
invoke-virtual {v1}, Landroid/view/ViewGroup;->getVisibility()I
move-result v7
if-eq v7, v4, :cond_1
const/4 v7, 0x1
goto :goto_1
:cond_1
const/4 v7, 0x0
:goto_1
invoke-virtual {v3}, Landroid/view/ViewGroup;->getVisibility()I
move-result v3
if-eq v3, v4, :cond_2
const/4 v3, 0x1
goto :goto_2
:cond_2
const/4 v3, 0x0
:goto_2
if-nez v3, :cond_3
sget v4, Landroidx/appcompat/R$id;->textSpacerNoButtons:I
invoke-virtual {v2, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v4
if-eqz v4, :cond_3
invoke-virtual {v4, v6}, Landroid/view/View;->setVisibility(I)V
:cond_3
if-eqz v7, :cond_7
iget-object v4, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
if-eqz v4, :cond_4
2019-12-06 03:29:40 +00:00
invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->setClipToPadding(Z)V
2019-07-24 11:27:29 +00:00
:cond_4
const/4 v4, 0x0
iget-object v8, p0, Landroidx/appcompat/app/AlertController;->mMessage:Ljava/lang/CharSequence;
if-nez v8, :cond_5
iget-object v8, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
if-eqz v8, :cond_6
:cond_5
sget v4, Landroidx/appcompat/R$id;->titleDividerNoCustom:I
invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v4
:cond_6
if-eqz v4, :cond_8
invoke-virtual {v4, v6}, Landroid/view/View;->setVisibility(I)V
goto :goto_3
:cond_7
sget v1, Landroidx/appcompat/R$id;->textSpacerNoTitle:I
invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object v1
if-eqz v1, :cond_8
invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V
:cond_8
:goto_3
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
instance-of v4, v1, Landroidx/appcompat/app/AlertController$RecycleListView;
if-eqz v4, :cond_9
check-cast v1, Landroidx/appcompat/app/AlertController$RecycleListView;
invoke-virtual {v1, v7, v3}, Landroidx/appcompat/app/AlertController$RecycleListView;->setHasDecor(ZZ)V
:cond_9
if-nez v0, :cond_c
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
if-eqz v0, :cond_a
goto :goto_4
:cond_a
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
:goto_4
if-eqz v0, :cond_c
if-eqz v3, :cond_b
const/4 v6, 0x2
:cond_b
or-int v1, v7, v6
const/4 v3, 0x3
invoke-direct {p0, v2, v0, v1, v3}, Landroidx/appcompat/app/AlertController;->setScrollIndicators(Landroid/view/ViewGroup;Landroid/view/View;II)V
:cond_c
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
if-eqz v0, :cond_d
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mAdapter:Landroid/widget/ListAdapter;
if-eqz v1, :cond_d
invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V
iget v1, p0, Landroidx/appcompat/app/AlertController;->mCheckedItem:I
2019-12-06 03:29:40 +00:00
const/4 v2, -0x1
if-le v1, v2, :cond_d
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1, v5}, Landroid/widget/ListView;->setItemChecked(IZ)V
invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V
:cond_d
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static shouldCenterSingleButton(Landroid/content/Context;)Z
2019-07-24 11:27:29 +00:00
.locals 3
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p0
sget v1, Landroidx/appcompat/R$attr;->alertDialogCenterButtons:I
const/4 v2, 0x1
invoke-virtual {p0, v1, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
iget p0, v0, Landroid/util/TypedValue;->data:I
if-eqz p0, :cond_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
return v2
2019-07-24 11:27:29 +00:00
.end method
# virtual methods
.method public getButton(I)Landroid/widget/Button;
.locals 1
const/4 v0, -0x3
if-eq p1, v0, :cond_2
const/4 v0, -0x2
if-eq p1, v0, :cond_1
const/4 v0, -0x1
if-eq p1, v0, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mButtonPositive:Landroid/widget/Button;
return-object p1
:cond_1
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mButtonNegative:Landroid/widget/Button;
return-object p1
:cond_2
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutral:Landroid/widget/Button;
return-object p1
.end method
.method public getIconAttributeResId(I)I
.locals 3
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mContext:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v1, p1, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
iget p1, v0, Landroid/util/TypedValue;->resourceId:I
return p1
.end method
.method public getListView()Landroid/widget/ListView;
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
return-object v0
.end method
.method public installContent()V
.locals 2
invoke-direct {p0}, Landroidx/appcompat/app/AlertController;->selectContentView()I
move-result v0
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mDialog:Landroidx/appcompat/app/AppCompatDialog;
invoke-virtual {v1, v0}, Landroidx/appcompat/app/AppCompatDialog;->setContentView(I)V
invoke-direct {p0}, Landroidx/appcompat/app/AlertController;->setupView()V
return-void
.end method
.method public onKeyDown(ILandroid/view/KeyEvent;)Z
.locals 0
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
if-eqz p1, :cond_0
invoke-virtual {p1, p2}, Landroidx/core/widget/NestedScrollView;->executeKeyEvent(Landroid/view/KeyEvent;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 p1, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return p1
.end method
.method public onKeyUp(ILandroid/view/KeyEvent;)Z
.locals 0
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
if-eqz p1, :cond_0
invoke-virtual {p1, p2}, Landroidx/core/widget/NestedScrollView;->executeKeyEvent(Landroid/view/KeyEvent;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 p1, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return p1
.end method
.method public setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;Landroid/os/Message;Landroid/graphics/drawable/Drawable;)V
.locals 0
if-nez p4, :cond_0
if-eqz p3, :cond_0
iget-object p4, p0, Landroidx/appcompat/app/AlertController;->mHandler:Landroid/os/Handler;
invoke-virtual {p4, p1, p3}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object p4
:cond_0
const/4 p3, -0x3
if-eq p1, p3, :cond_3
const/4 p3, -0x2
if-eq p1, p3, :cond_2
const/4 p3, -0x1
if-ne p1, p3, :cond_1
iput-object p2, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveText:Ljava/lang/CharSequence;
iput-object p4, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveMessage:Landroid/os/Message;
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Button does not exist"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
iput-object p2, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeText:Ljava/lang/CharSequence;
iput-object p4, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeMessage:Landroid/os/Message;
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_3
iput-object p2, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;
iput-object p4, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralMessage:Landroid/os/Message;
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setButtonPanelLayoutHint(I)V
.locals 0
iput p1, p0, Landroidx/appcompat/app/AlertController;->mButtonPanelLayoutHint:I
return-void
.end method
.method public setCustomTitle(Landroid/view/View;)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mCustomTitleView:Landroid/view/View;
return-void
.end method
.method public setIcon(I)V
.locals 1
const/4 v0, 0x0
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;
iput p1, p0, Landroidx/appcompat/app/AlertController;->mIconId:I
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
if-eqz v0, :cond_1
if-eqz p1, :cond_0
const/4 p1, 0x0
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setVisibility(I)V
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
iget v0, p0, Landroidx/appcompat/app/AlertController;->mIconId:I
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/16 p1, 0x8
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setIcon(Landroid/graphics/drawable/Drawable;)V
.locals 2
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;
const/4 v0, 0x0
iput v0, p0, Landroidx/appcompat/app/AlertController;->mIconId:I
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
if-eqz v1, :cond_1
if-eqz p1, :cond_0
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mIconView:Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/16 p1, 0x8
invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setVisibility(I)V
:cond_1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setMessage(Ljava/lang/CharSequence;)V
.locals 1
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mMessage:Ljava/lang/CharSequence;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mMessageView:Landroid/widget/TextView;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:cond_0
return-void
.end method
.method public setTitle(Ljava/lang/CharSequence;)V
.locals 1
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mTitle:Ljava/lang/CharSequence;
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mTitleView:Landroid/widget/TextView;
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:cond_0
return-void
.end method
.method public setView(I)V
.locals 1
const/4 v0, 0x0
iput-object v0, p0, Landroidx/appcompat/app/AlertController;->mView:Landroid/view/View;
iput p1, p0, Landroidx/appcompat/app/AlertController;->mViewLayoutResId:I
const/4 p1, 0x0
iput-boolean p1, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingSpecified:Z
return-void
.end method
.method public setView(Landroid/view/View;)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mView:Landroid/view/View;
const/4 p1, 0x0
iput p1, p0, Landroidx/appcompat/app/AlertController;->mViewLayoutResId:I
iput-boolean p1, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingSpecified:Z
return-void
.end method
.method public setView(Landroid/view/View;IIII)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/app/AlertController;->mView:Landroid/view/View;
const/4 p1, 0x0
iput p1, p0, Landroidx/appcompat/app/AlertController;->mViewLayoutResId:I
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingSpecified:Z
iput p2, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingLeft:I
iput p3, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingTop:I
iput p4, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingRight:I
iput p5, p0, Landroidx/appcompat/app/AlertController;->mViewSpacingBottom:I
return-void
.end method