Changes of com.discord v1271
This commit is contained in:
parent
2e142f9b6b
commit
4244e04c36
14542 changed files with 904422 additions and 1057813 deletions
|
@ -3,6 +3,14 @@
|
|||
.source "AppCompatCompoundButtonHelper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/appcompat/widget/AppCompatCompoundButtonHelper$DirectSetButtonDrawableInterface;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mButtonTintList:Landroid/content/res/ColorStateList;
|
||||
|
||||
|
@ -15,18 +23,11 @@
|
|||
.field public mSkipNextApply:Z
|
||||
|
||||
.field public final mView:Landroid/widget/CompoundButton;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/widget/CompoundButton;)V
|
||||
.locals 1
|
||||
.param p1 # Landroid/widget/CompoundButton;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
|
@ -141,11 +142,7 @@
|
|||
.end method
|
||||
|
||||
.method public loadFromAttributes(Landroid/util/AttributeSet;I)V
|
||||
.locals 10
|
||||
.param p1 # Landroid/util/AttributeSet;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
|
@ -157,51 +154,31 @@
|
|||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-static {v0, p1, v1, p2, v2}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
||||
invoke-virtual {v0, p1, v1, p2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
invoke-virtual {v3}, Landroid/widget/CompoundButton;->getContext()Landroid/content/Context;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
sget-object v5, Landroidx/appcompat/R$styleable;->CompoundButton:[I
|
||||
|
||||
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->getWrappedTypeArray()Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object v7
|
||||
|
||||
const/4 v9, 0x0
|
||||
|
||||
move-object v6, p1
|
||||
|
||||
move v8, p2
|
||||
|
||||
invoke-static/range {v3 .. v9}, Landroidx/core/view/ViewCompat;->saveAttributeDataForStyleable(Landroid/view/View;Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
|
||||
move-result-object p1
|
||||
|
||||
:try_start_0
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_buttonCompat:I
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonCompat:I
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
||||
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p1
|
||||
move-result p2
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_buttonCompat:I
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonCompat:I
|
||||
|
||||
invoke-virtual {v0, p1, v2}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
||||
invoke-virtual {p1, p2, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
||||
|
||||
move-result p1
|
||||
move-result p2
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
:try_start_1
|
||||
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
|
@ -209,44 +186,44 @@
|
|||
|
||||
move-result-object v1
|
||||
|
||||
invoke-static {v1, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||||
invoke-static {v1, p2}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object p1
|
||||
move-result-object p2
|
||||
|
||||
invoke-virtual {p2, p1}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
invoke-virtual {v0, p2}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
:try_end_1
|
||||
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_1 .. :try_end_1} :catch_0
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
const/4 p2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
const/4 p2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-nez p1, :cond_1
|
||||
if-nez p2, :cond_1
|
||||
|
||||
:try_start_2
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_android_button:I
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_android_button:I
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
||||
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p1
|
||||
move-result p2
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_android_button:I
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_android_button:I
|
||||
|
||||
invoke-virtual {v0, p1, v2}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
||||
invoke-virtual {p1, p2, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
||||
|
||||
move-result p1
|
||||
move-result p2
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
|
@ -254,71 +231,71 @@
|
|||
|
||||
move-result-object v1
|
||||
|
||||
invoke-static {v1, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p2, p1}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
:cond_1
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTint:I
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTint:I
|
||||
|
||||
invoke-virtual {v0, p2}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
||||
invoke-static {v1, p2}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-static {p1, p2}, Landroidx/core/widget/CompoundButtonCompat;->setButtonTintList(Landroid/widget/CompoundButton;Landroid/content/res/ColorStateList;)V
|
||||
invoke-virtual {v0, p2}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
:cond_2
|
||||
sget p1, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTintMode:I
|
||||
:cond_1
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTint:I
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_3
|
||||
|
||||
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTintMode:I
|
||||
|
||||
const/4 v1, -0x1
|
||||
|
||||
invoke-virtual {v0, p2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
||||
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
sget v0, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTint:I
|
||||
|
||||
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {p2, v0}, Landroidx/core/widget/CompoundButtonCompat;->setButtonTintList(Landroid/widget/CompoundButton;Landroid/content/res/ColorStateList;)V
|
||||
|
||||
:cond_2
|
||||
sget p2, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTintMode:I
|
||||
|
||||
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p2
|
||||
|
||||
if-eqz p2, :cond_3
|
||||
|
||||
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->mView:Landroid/widget/CompoundButton;
|
||||
|
||||
sget v0, Landroidx/appcompat/R$styleable;->CompoundButton_buttonTintMode:I
|
||||
|
||||
const/4 v1, -0x1
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getInt(II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-static {p2, v1}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
||||
invoke-static {v0, v1}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
move-result-object p2
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {p1, p2}, Landroidx/core/widget/CompoundButtonCompat;->setButtonTintMode(Landroid/widget/CompoundButton;Landroid/graphics/PorterDuff$Mode;)V
|
||||
invoke-static {p2, v0}, Landroidx/core/widget/CompoundButtonCompat;->setButtonTintMode(Landroid/widget/CompoundButton;Landroid/graphics/PorterDuff$Mode;)V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
:cond_3
|
||||
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
||||
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
move-exception p2
|
||||
|
||||
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
||||
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
throw p1
|
||||
throw p2
|
||||
.end method
|
||||
|
||||
.method public onSetButtonDrawable()V
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue