Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -1,4 +1,4 @@
|
|||
.class Landroidx/appcompat/app/AlertController;
|
||||
.class public Landroidx/appcompat/app/AlertController;
|
||||
.super Ljava/lang/Object;
|
||||
.source "AlertController.java"
|
||||
|
||||
|
@ -15,95 +15,95 @@
|
|||
|
||||
|
||||
# instance fields
|
||||
.field mAdapter:Landroid/widget/ListAdapter;
|
||||
.field public mAdapter:Landroid/widget/ListAdapter;
|
||||
|
||||
.field private mAlertDialogLayout:I
|
||||
.field public mAlertDialogLayout:I
|
||||
|
||||
.field private final mButtonHandler:Landroid/view/View$OnClickListener;
|
||||
.field public final mButtonHandler:Landroid/view/View$OnClickListener;
|
||||
|
||||
.field private final mButtonIconDimen:I
|
||||
.field public final mButtonIconDimen:I
|
||||
|
||||
.field mButtonNegative:Landroid/widget/Button;
|
||||
.field public mButtonNegative:Landroid/widget/Button;
|
||||
|
||||
.field private mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
|
||||
.field public mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field mButtonNegativeMessage:Landroid/os/Message;
|
||||
.field public mButtonNegativeMessage:Landroid/os/Message;
|
||||
|
||||
.field private mButtonNegativeText:Ljava/lang/CharSequence;
|
||||
.field public mButtonNegativeText:Ljava/lang/CharSequence;
|
||||
|
||||
.field mButtonNeutral:Landroid/widget/Button;
|
||||
.field public mButtonNeutral:Landroid/widget/Button;
|
||||
|
||||
.field private mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
|
||||
.field public mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field mButtonNeutralMessage:Landroid/os/Message;
|
||||
.field public mButtonNeutralMessage:Landroid/os/Message;
|
||||
|
||||
.field private mButtonNeutralText:Ljava/lang/CharSequence;
|
||||
.field public mButtonNeutralText:Ljava/lang/CharSequence;
|
||||
|
||||
.field private mButtonPanelLayoutHint:I
|
||||
.field public mButtonPanelLayoutHint:I
|
||||
|
||||
.field private mButtonPanelSideLayout:I
|
||||
.field public mButtonPanelSideLayout:I
|
||||
|
||||
.field mButtonPositive:Landroid/widget/Button;
|
||||
.field public mButtonPositive:Landroid/widget/Button;
|
||||
|
||||
.field private mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
|
||||
.field public mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field mButtonPositiveMessage:Landroid/os/Message;
|
||||
.field public mButtonPositiveMessage:Landroid/os/Message;
|
||||
|
||||
.field private mButtonPositiveText:Ljava/lang/CharSequence;
|
||||
.field public mButtonPositiveText:Ljava/lang/CharSequence;
|
||||
|
||||
.field mCheckedItem:I
|
||||
.field public mCheckedItem:I
|
||||
|
||||
.field private final mContext:Landroid/content/Context;
|
||||
.field public final mContext:Landroid/content/Context;
|
||||
|
||||
.field private mCustomTitleView:Landroid/view/View;
|
||||
.field public mCustomTitleView:Landroid/view/View;
|
||||
|
||||
.field final mDialog:Landroidx/appcompat/app/AppCompatDialog;
|
||||
.field public final mDialog:Landroidx/appcompat/app/AppCompatDialog;
|
||||
|
||||
.field mHandler:Landroid/os/Handler;
|
||||
.field public mHandler:Landroid/os/Handler;
|
||||
|
||||
.field private mIcon:Landroid/graphics/drawable/Drawable;
|
||||
.field public mIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field private mIconId:I
|
||||
.field public mIconId:I
|
||||
|
||||
.field private mIconView:Landroid/widget/ImageView;
|
||||
.field public mIconView:Landroid/widget/ImageView;
|
||||
|
||||
.field mListItemLayout:I
|
||||
.field public mListItemLayout:I
|
||||
|
||||
.field mListLayout:I
|
||||
.field public mListLayout:I
|
||||
|
||||
.field mListView:Landroid/widget/ListView;
|
||||
.field public mListView:Landroid/widget/ListView;
|
||||
|
||||
.field private mMessage:Ljava/lang/CharSequence;
|
||||
.field public mMessage:Ljava/lang/CharSequence;
|
||||
|
||||
.field private mMessageView:Landroid/widget/TextView;
|
||||
.field public mMessageView:Landroid/widget/TextView;
|
||||
|
||||
.field mMultiChoiceItemLayout:I
|
||||
.field public mMultiChoiceItemLayout:I
|
||||
|
||||
.field mScrollView:Landroidx/core/widget/NestedScrollView;
|
||||
.field public mScrollView:Landroidx/core/widget/NestedScrollView;
|
||||
|
||||
.field private mShowTitle:Z
|
||||
.field public mShowTitle:Z
|
||||
|
||||
.field mSingleChoiceItemLayout:I
|
||||
.field public mSingleChoiceItemLayout:I
|
||||
|
||||
.field private mTitle:Ljava/lang/CharSequence;
|
||||
.field public mTitle:Ljava/lang/CharSequence;
|
||||
|
||||
.field private mTitleView:Landroid/widget/TextView;
|
||||
.field public mTitleView:Landroid/widget/TextView;
|
||||
|
||||
.field private mView:Landroid/view/View;
|
||||
.field public mView:Landroid/view/View;
|
||||
|
||||
.field private mViewLayoutResId:I
|
||||
.field public mViewLayoutResId:I
|
||||
|
||||
.field private mViewSpacingBottom:I
|
||||
.field public mViewSpacingBottom:I
|
||||
|
||||
.field private mViewSpacingLeft:I
|
||||
.field public mViewSpacingLeft:I
|
||||
|
||||
.field private mViewSpacingRight:I
|
||||
.field public mViewSpacingRight:I
|
||||
|
||||
.field private mViewSpacingSpecified:Z
|
||||
.field public mViewSpacingSpecified:Z
|
||||
|
||||
.field private mViewSpacingTop:I
|
||||
.field public mViewSpacingTop:I
|
||||
|
||||
.field private final mWindow:Landroid/view/Window;
|
||||
.field public final mWindow:Landroid/view/Window;
|
||||
|
||||
|
||||
# direct methods
|
||||
|
@ -225,7 +225,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method static canTextInput(Landroid/view/View;)Z
|
||||
.method public static canTextInput(Landroid/view/View;)Z
|
||||
.locals 4
|
||||
|
||||
invoke-virtual {p0}, Landroid/view/View;->onCheckIsTextEditor()Z
|
||||
|
@ -297,7 +297,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method static manageScrollIndicators(Landroid/view/View;Landroid/view/View;Landroid/view/View;)V
|
||||
.method public static manageScrollIndicators(Landroid/view/View;Landroid/view/View;Landroid/view/View;)V
|
||||
.locals 3
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
@ -349,6 +349,16 @@
|
|||
|
||||
.method private resolvePanel(Landroid/view/View;Landroid/view/View;)Landroid/view/ViewGroup;
|
||||
.locals 2
|
||||
.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
|
||||
|
||||
if-nez p1, :cond_1
|
||||
|
||||
|
@ -461,7 +471,7 @@
|
|||
|
||||
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
||||
|
||||
return-void
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/4 p2, 0x0
|
||||
|
@ -514,9 +524,9 @@
|
|||
|
||||
invoke-direct {p3, p0, v0, p2}, Landroidx/appcompat/app/AlertController$3;-><init>(Landroidx/appcompat/app/AlertController;Landroid/view/View;Landroid/view/View;)V
|
||||
|
||||
invoke-virtual {p1, p3}, Landroidx/core/widget/NestedScrollView;->post(Ljava/lang/Runnable;)Z
|
||||
invoke-virtual {p1, p3}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
|
||||
|
||||
return-void
|
||||
goto :goto_1
|
||||
|
||||
:cond_5
|
||||
iget-object p3, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
|
||||
|
@ -537,7 +547,7 @@
|
|||
|
||||
invoke-virtual {p1, p3}, Landroid/widget/ListView;->post(Ljava/lang/Runnable;)Z
|
||||
|
||||
return-void
|
||||
goto :goto_1
|
||||
|
||||
:cond_6
|
||||
if-eqz v0, :cond_7
|
||||
|
@ -550,6 +560,7 @@
|
|||
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
||||
|
||||
:cond_8
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -828,7 +839,7 @@
|
|||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/core/widget/NestedScrollView;->setFocusable(Z)V
|
||||
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setFocusable(Z)V
|
||||
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
|
||||
|
||||
|
@ -857,7 +868,7 @@
|
|||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/16 v1, 0x8
|
||||
|
@ -868,7 +879,7 @@
|
|||
|
||||
iget-object v2, p0, Landroidx/appcompat/app/AlertController;->mMessageView:Landroid/widget/TextView;
|
||||
|
||||
invoke-virtual {v0, v2}, Landroidx/core/widget/NestedScrollView;->removeView(Landroid/view/View;)V
|
||||
invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
|
||||
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
|
||||
|
||||
|
@ -876,7 +887,7 @@
|
|||
|
||||
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mScrollView:Landroidx/core/widget/NestedScrollView;
|
||||
|
||||
invoke-virtual {p1}, Landroidx/core/widget/NestedScrollView;->getParent()Landroid/view/ViewParent;
|
||||
invoke-virtual {p1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
|
@ -900,11 +911,12 @@
|
|||
|
||||
invoke-virtual {p1, v1, v0, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setVisibility(I)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -963,7 +975,7 @@
|
|||
invoke-virtual {v2, v3, v3}, Landroid/view/Window;->setFlags(II)V
|
||||
|
||||
:cond_4
|
||||
if-eqz v1, :cond_7
|
||||
if-eqz v1, :cond_6
|
||||
|
||||
iget-object v1, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
|
||||
|
||||
|
@ -1000,7 +1012,7 @@
|
|||
:cond_5
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mListView:Landroid/widget/ListView;
|
||||
|
||||
if-eqz v0, :cond_6
|
||||
if-eqz v0, :cond_7
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
||||
|
||||
|
@ -1012,14 +1024,15 @@
|
|||
|
||||
iput v0, p1, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;->weight:F
|
||||
|
||||
:cond_6
|
||||
return-void
|
||||
goto :goto_1
|
||||
|
||||
:cond_7
|
||||
:cond_6
|
||||
const/16 v0, 0x8
|
||||
|
||||
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V
|
||||
|
||||
:cond_7
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -1056,7 +1069,7 @@
|
|||
|
||||
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V
|
||||
|
||||
return-void
|
||||
goto/16 :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
|
||||
|
@ -1111,7 +1124,7 @@
|
|||
|
||||
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
@ -1122,7 +1135,7 @@
|
|||
|
||||
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
iget-object p1, p0, Landroidx/appcompat/app/AlertController;->mTitleView:Landroid/widget/TextView;
|
||||
|
@ -1157,7 +1170,7 @@
|
|||
|
||||
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AlertController;->mWindow:Landroid/view/Window;
|
||||
|
@ -1176,6 +1189,7 @@
|
|||
|
||||
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setVisibility(I)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -1254,18 +1268,16 @@
|
|||
|
||||
invoke-direct {p0, v1}, Landroidx/appcompat/app/AlertController;->setupTitle(Landroid/view/ViewGroup;)V
|
||||
|
||||
invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/16 v4, 0x8
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eq v0, v4, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
@ -1292,8 +1304,6 @@
|
|||
const/4 v7, 0x0
|
||||
|
||||
:goto_1
|
||||
if-eqz v3, :cond_2
|
||||
|
||||
invoke-virtual {v3}, Landroid/view/ViewGroup;->getVisibility()I
|
||||
|
||||
move-result v3
|
||||
|
@ -1310,8 +1320,6 @@
|
|||
:goto_2
|
||||
if-nez v3, :cond_3
|
||||
|
||||
if-eqz v2, :cond_3
|
||||
|
||||
sget v4, Landroidx/appcompat/R$id;->textSpacerNoButtons:I
|
||||
|
||||
invoke-virtual {v2, v4}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
||||
|
@ -1329,7 +1337,7 @@
|
|||
|
||||
if-eqz v4, :cond_4
|
||||
|
||||
invoke-virtual {v4, v5}, Landroidx/core/widget/NestedScrollView;->setClipToPadding(Z)V
|
||||
invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->setClipToPadding(Z)V
|
||||
|
||||
:cond_4
|
||||
const/4 v4, 0x0
|
||||
|
@ -1357,8 +1365,6 @@
|
|||
goto :goto_3
|
||||
|
||||
:cond_7
|
||||
if-eqz v2, :cond_8
|
||||
|
||||
sget v1, Landroidx/appcompat/R$id;->textSpacerNoTitle:I
|
||||
|
||||
invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
||||
|
@ -1420,7 +1426,9 @@
|
|||
|
||||
iget v1, p0, Landroidx/appcompat/app/AlertController;->mCheckedItem:I
|
||||
|
||||
if-ltz v1, :cond_d
|
||||
const/4 v2, -0x1
|
||||
|
||||
if-le v1, v2, :cond_d
|
||||
|
||||
invoke-virtual {v0, v1, v5}, Landroid/widget/ListView;->setItemChecked(IZ)V
|
||||
|
||||
|
@ -1430,7 +1438,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method private static shouldCenterSingleButton(Landroid/content/Context;)Z
|
||||
.method public static shouldCenterSingleButton(Landroid/content/Context;)Z
|
||||
.locals 3
|
||||
|
||||
new-instance v0, Landroid/util/TypedValue;
|
||||
|
@ -1451,12 +1459,13 @@
|
|||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
return v2
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
const/4 v2, 0x0
|
||||
|
||||
return p0
|
||||
:goto_0
|
||||
return v2
|
||||
.end method
|
||||
|
||||
|
||||
|
@ -1557,11 +1566,12 @@
|
|||
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
|
@ -1580,11 +1590,12 @@
|
|||
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
|
@ -1620,7 +1631,7 @@
|
|||
|
||||
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonPositiveIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
@ -1638,7 +1649,7 @@
|
|||
|
||||
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonNegativeIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
iput-object p2, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;
|
||||
|
@ -1647,6 +1658,7 @@
|
|||
|
||||
iput-object p5, p0, Landroidx/appcompat/app/AlertController;->mButtonNeutralIcon:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -1691,7 +1703,7 @@
|
|||
|
||||
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/16 p1, 0x8
|
||||
|
@ -1699,6 +1711,7 @@
|
|||
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setVisibility(I)V
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -1723,7 +1736,7 @@
|
|||
|
||||
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/16 p1, 0x8
|
||||
|
@ -1731,6 +1744,7 @@
|
|||
invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setVisibility(I)V
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue