Changes of com.discord v983

This commit is contained in:
DisTok 2019-11-10 15:21:47 +01:00
parent a27d2b3bc2
commit 663ccffc03
8055 changed files with 268069 additions and 196257 deletions

View file

@ -77,6 +77,8 @@
.field private mTextColors:Landroid/content/res/ColorStateList;
.field private final mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper;
.field private mTextOff:Ljava/lang/CharSequence;
.field private mTextOn:Ljava/lang/CharSequence;
@ -162,7 +164,7 @@
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 5
.locals 7
invoke-direct {p0, p1, p2, p3}, Landroid/widget/CompoundButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
@ -224,196 +226,206 @@
invoke-static {p1, p2, v2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
move-result-object p2
move-result-object v2
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_android_thumb:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_android_thumb:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p3
move-result-object v4
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbDrawable:Landroid/graphics/drawable/Drawable;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbDrawable:Landroid/graphics/drawable/Drawable;
iget-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbDrawable:Landroid/graphics/drawable/Drawable;
iget-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbDrawable:Landroid/graphics/drawable/Drawable;
if-eqz p3, :cond_0
if-eqz v4, :cond_0
invoke-virtual {p3, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
invoke-virtual {v4, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
:cond_0
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_track:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_track:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p3
move-result-object v4
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackDrawable:Landroid/graphics/drawable/Drawable;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackDrawable:Landroid/graphics/drawable/Drawable;
iget-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackDrawable:Landroid/graphics/drawable/Drawable;
iget-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackDrawable:Landroid/graphics/drawable/Drawable;
if-eqz p3, :cond_1
if-eqz v4, :cond_1
invoke-virtual {p3, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
invoke-virtual {v4, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
:cond_1
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_android_textOn:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_android_textOn:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
move-result-object p3
move-result-object v4
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextOn:Ljava/lang/CharSequence;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextOn:Ljava/lang/CharSequence;
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_android_textOff:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_android_textOff:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getText(I)Ljava/lang/CharSequence;
move-result-object p3
move-result-object v4
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextOff:Ljava/lang/CharSequence;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextOff:Ljava/lang/CharSequence;
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_showText:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_showText:I
invoke-virtual {p2, p3, v3}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
invoke-virtual {v2, v4, v3}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
move-result p3
move-result v4
iput-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mShowText:Z
iput-boolean v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mShowText:Z
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTextPadding:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTextPadding:I
invoke-virtual {p2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
invoke-virtual {v2, v4, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
move-result p3
move-result v4
iput p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTextPadding:I
iput v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTextPadding:I
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_switchMinWidth:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_switchMinWidth:I
invoke-virtual {p2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
invoke-virtual {v2, v4, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
move-result p3
move-result v4
iput p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchMinWidth:I
iput v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchMinWidth:I
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_switchPadding:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_switchPadding:I
invoke-virtual {p2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
invoke-virtual {v2, v4, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
move-result p3
move-result v4
iput p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchPadding:I
iput v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchPadding:I
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_splitTrack:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_splitTrack:I
invoke-virtual {p2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
invoke-virtual {v2, v4, v1}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
move-result p3
move-result v4
iput-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mSplitTrack:Z
iput-boolean v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mSplitTrack:Z
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTint:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTint:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object p3
move-result-object v4
if-eqz p3, :cond_2
if-eqz v4, :cond_2
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintList:Landroid/content/res/ColorStateList;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintList:Landroid/content/res/ColorStateList;
iput-boolean v3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTint:Z
:cond_2
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTintMode:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_thumbTintMode:I
const/4 v2, -0x1
const/4 v5, -0x1
invoke-virtual {p2, p3, v2}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
invoke-virtual {v2, v4, v5}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
move-result p3
move-result v4
invoke-static {p3, v0}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
invoke-static {v4, v0}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
move-result-object p3
move-result-object v4
iget-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintMode:Landroid/graphics/PorterDuff$Mode;
iget-object v6, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintMode:Landroid/graphics/PorterDuff$Mode;
if-eq v4, p3, :cond_3
if-eq v6, v4, :cond_3
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintMode:Landroid/graphics/PorterDuff$Mode;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbTintMode:Landroid/graphics/PorterDuff$Mode;
iput-boolean v3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTintMode:Z
:cond_3
iget-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTint:Z
iget-boolean v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTint:Z
if-nez p3, :cond_4
if-nez v4, :cond_4
iget-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTintMode:Z
iget-boolean v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasThumbTintMode:Z
if-eqz p3, :cond_5
if-eqz v4, :cond_5
:cond_4
invoke-direct {p0}, Landroidx/appcompat/widget/SwitchCompat;->applyThumbTint()V
:cond_5
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_trackTint:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_trackTint:I
invoke-virtual {p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object p3
move-result-object v4
if-eqz p3, :cond_6
if-eqz v4, :cond_6
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintList:Landroid/content/res/ColorStateList;
iput-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintList:Landroid/content/res/ColorStateList;
iput-boolean v3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTint:Z
:cond_6
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_trackTintMode:I
sget v4, Landroidx/appcompat/R$styleable;->SwitchCompat_trackTintMode:I
invoke-virtual {p2, p3, v2}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
invoke-virtual {v2, v4, v5}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
move-result p3
move-result v4
invoke-static {p3, v0}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
invoke-static {v4, v0}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
move-result-object p3
move-result-object v0
iget-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintMode:Landroid/graphics/PorterDuff$Mode;
iget-object v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintMode:Landroid/graphics/PorterDuff$Mode;
if-eq v0, p3, :cond_7
if-eq v4, v0, :cond_7
iput-object p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintMode:Landroid/graphics/PorterDuff$Mode;
iput-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackTintMode:Landroid/graphics/PorterDuff$Mode;
iput-boolean v3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTintMode:Z
:cond_7
iget-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTint:Z
iget-boolean v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTint:Z
if-nez p3, :cond_8
if-nez v0, :cond_8
iget-boolean p3, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTintMode:Z
iget-boolean v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mHasTrackTintMode:Z
if-eqz p3, :cond_9
if-eqz v0, :cond_9
:cond_8
invoke-direct {p0}, Landroidx/appcompat/widget/SwitchCompat;->applyTrackTint()V
:cond_9
sget p3, Landroidx/appcompat/R$styleable;->SwitchCompat_switchTextAppearance:I
sget v0, Landroidx/appcompat/R$styleable;->SwitchCompat_switchTextAppearance:I
invoke-virtual {p2, p3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
invoke-virtual {v2, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
move-result p3
move-result v0
if-eqz p3, :cond_a
if-eqz v0, :cond_a
invoke-virtual {p0, p1, p3}, Landroidx/appcompat/widget/SwitchCompat;->setSwitchTextAppearance(Landroid/content/Context;I)V
invoke-virtual {p0, p1, v0}, Landroidx/appcompat/widget/SwitchCompat;->setSwitchTextAppearance(Landroid/content/Context;I)V
:cond_a
invoke-virtual {p2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
new-instance v0, Landroidx/appcompat/widget/AppCompatTextHelper;
invoke-direct {v0, p0}, Landroidx/appcompat/widget/AppCompatTextHelper;-><init>(Landroid/widget/TextView;)V
iput-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper;
iget-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper;
invoke-virtual {v0, p2, p3}, Landroidx/appcompat/widget/AppCompatTextHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
invoke-virtual {v2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
@ -513,6 +525,10 @@
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbDrawable:Landroid/graphics/drawable/Drawable;
invoke-static {v0}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
move-result-object v0
@ -579,6 +595,10 @@
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTrackDrawable:Landroid/graphics/drawable/Drawable;
invoke-static {v0}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
move-result-object v0