* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
6743 lines
146 KiB
Smali
6743 lines
146 KiB
Smali
.class public Lcom/google/android/material/button/MaterialButton;
|
|
.super Landroidx/appcompat/widget/AppCompatButton;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/Checkable;
|
|
.implements Lcom/google/android/material/shape/Shapeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/button/MaterialButton$SavedState;,
|
|
Lcom/google/android/material/button/MaterialButton$OnCheckedChangeListener;,
|
|
Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;,
|
|
Lcom/google/android/material/button/MaterialButton$IconGravity;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final J:[I
|
|
|
|
.field public static final K:[I
|
|
|
|
.field public static final L:I
|
|
|
|
.field public static final M:I
|
|
|
|
.field public static final N:Landroidx/dynamicanimation/animation/FloatPropertyCompat;
|
|
|
|
|
|
# instance fields
|
|
.field public A:Z
|
|
|
|
.field public B:I
|
|
|
|
.field public C:Z
|
|
|
|
.field public D:I
|
|
|
|
.field public E:Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.field public F:I
|
|
|
|
.field public G:F
|
|
|
|
.field public H:F
|
|
|
|
.field public I:Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.field public final h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.field public final i:Ljava/util/LinkedHashSet;
|
|
|
|
.field public j:Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;
|
|
|
|
.field public k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.field public l:Landroid/content/res/ColorStateList;
|
|
|
|
.field public m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public n:Ljava/lang/String;
|
|
|
|
.field public o:I
|
|
|
|
.field public p:I
|
|
|
|
.field public q:I
|
|
|
|
.field public r:I
|
|
|
|
.field public s:Z
|
|
|
|
.field public t:Z
|
|
|
|
.field public u:I
|
|
|
|
.field public v:I
|
|
|
|
.field public w:F
|
|
|
|
.field public x:I
|
|
|
|
.field public y:I
|
|
|
|
.field public z:Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const v0, 0x101009f
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
sput-object v0, Lcom/google/android/material/button/MaterialButton;->J:[I
|
|
|
|
.line 9
|
|
.line 10
|
|
const v0, 0x10100a0
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
sput-object v0, Lcom/google/android/material/button/MaterialButton;->K:[I
|
|
|
|
.line 18
|
|
.line 19
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_MaterialComponents_Button:I
|
|
|
|
.line 20
|
|
.line 21
|
|
sput v0, Lcom/google/android/material/button/MaterialButton;->L:I
|
|
|
|
.line 22
|
|
.line 23
|
|
sget v0, Lcom/google/android/material/R$attr;->materialSizeOverlay:I
|
|
|
|
.line 24
|
|
.line 25
|
|
sput v0, Lcom/google/android/material/button/MaterialButton;->M:I
|
|
|
|
.line 26
|
|
.line 27
|
|
new-instance v0, Lcom/google/android/material/button/MaterialButton$1;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
sput-object v0, Lcom/google/android/material/button/MaterialButton;->N:Landroidx/dynamicanimation/animation/FloatPropertyCompat;
|
|
|
|
.line 33
|
|
.line 34
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 9
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget v3, Lcom/google/android/material/R$attr;->materialButtonStyle:I
|
|
|
|
.line 2
|
|
.line 3
|
|
sget v0, Lcom/google/android/material/button/MaterialButton;->M:I
|
|
|
|
.line 4
|
|
.line 5
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
sget v4, Lcom/google/android/material/button/MaterialButton;->L:I
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {p1, p2, v3, v4, v0}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->b(Landroid/content/Context;Landroid/util/AttributeSet;II[I)Landroid/content/Context;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
invoke-direct {p0, p1, p2, v3}, Landroidx/appcompat/widget/AppCompatButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
new-instance p1, Ljava/util/LinkedHashSet;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {p1}, Ljava/util/LinkedHashSet;-><init>()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->i:Ljava/util/LinkedHashSet;
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 p1, 0x0
|
|
|
|
.line 26
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 27
|
|
.line 28
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->t:Z
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v6, -0x1
|
|
|
|
.line 31
|
|
iput v6, p0, Lcom/google/android/material/button/MaterialButton;->v:I
|
|
|
|
.line 32
|
|
.line 33
|
|
const/high16 v0, -0x40800000 # -1.0f
|
|
|
|
.line 34
|
|
.line 35
|
|
iput v0, p0, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 36
|
|
.line 37
|
|
iput v6, p0, Lcom/google/android/material/button/MaterialButton;->x:I
|
|
|
|
.line 38
|
|
.line 39
|
|
iput v6, p0, Lcom/google/android/material/button/MaterialButton;->y:I
|
|
|
|
.line 40
|
|
.line 41
|
|
iput v6, p0, Lcom/google/android/material/button/MaterialButton;->D:I
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v0
|
|
|
|
.line 47
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->MaterialButton:[I
|
|
|
|
.line 48
|
|
.line 49
|
|
new-array v5, p1, [I
|
|
|
|
.line 50
|
|
.line 51
|
|
move-object v1, p2
|
|
|
|
.line 52
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object p2
|
|
|
|
.line 56
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialButton_iconPadding:I
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result v2
|
|
|
|
.line 62
|
|
iput v2, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 63
|
|
.line 64
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialButton_iconTintMode:I
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p2, v2, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result v2
|
|
|
|
.line 70
|
|
sget-object v5, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-static {v2, v5}, Lcom/google/android/material/internal/ViewUtils;->c(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v2
|
|
|
|
.line 76
|
|
iput-object v2, p0, Lcom/google/android/material/button/MaterialButton;->k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 77
|
|
.line 78
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result-object v2
|
|
|
|
.line 82
|
|
sget v7, Lcom/google/android/material/R$styleable;->MaterialButton_iconTint:I
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-static {v2, p2, v7}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object v2
|
|
|
|
.line 88
|
|
iput-object v2, p0, Lcom/google/android/material/button/MaterialButton;->l:Landroid/content/res/ColorStateList;
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
move-result-object v2
|
|
|
|
.line 94
|
|
sget v7, Lcom/google/android/material/R$styleable;->MaterialButton_icon:I
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-static {v2, p2, v7}, Lcom/google/android/material/resources/MaterialResources;->c(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object v2
|
|
|
|
.line 100
|
|
iput-object v2, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 101
|
|
.line 102
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialButton_iconGravity:I
|
|
|
|
.line 103
|
|
.line 104
|
|
const/4 v7, 0x1
|
|
|
|
.line 105
|
|
invoke-virtual {p2, v2, v7}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-result v2
|
|
|
|
.line 109
|
|
iput v2, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 110
|
|
.line 111
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialButton_iconSize:I
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {p2, v2, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
move-result v2
|
|
|
|
.line 117
|
|
iput v2, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 118
|
|
.line 119
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialButton_shapeAppearance:I
|
|
|
|
.line 120
|
|
.line 121
|
|
invoke-static {v0, p2, v2}, Lcom/google/android/material/shape/StateListShapeAppearanceModel;->b(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 122
|
|
.line 123
|
|
.line 124
|
|
move-result-object v2
|
|
|
|
.line 125
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-virtual {v2}, Lcom/google/android/material/shape/StateListShapeAppearanceModel;->c()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
move-result-object v0
|
|
|
|
.line 131
|
|
goto :goto_0
|
|
|
|
.line 132
|
|
:cond_0
|
|
invoke-static {v0, v1, v3, v4}, Lcom/google/android/material/shape/ShapeAppearanceModel;->c(Landroid/content/Context;Landroid/util/AttributeSet;II)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
|
|
|
|
.line 133
|
|
.line 134
|
|
.line 135
|
|
move-result-object v0
|
|
|
|
.line 136
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->a()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
move-result-object v0
|
|
|
|
.line 140
|
|
:goto_0
|
|
sget v1, Lcom/google/android/material/R$styleable;->MaterialButton_opticalCenterEnabled:I
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
move-result v1
|
|
|
|
.line 146
|
|
new-instance v3, Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 147
|
|
.line 148
|
|
invoke-direct {v3, p0, v0}, Lcom/google/android/material/button/MaterialButtonHelper;-><init>(Lcom/google/android/material/button/MaterialButton;Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
|
|
.line 149
|
|
.line 150
|
|
.line 151
|
|
iput-object v3, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 152
|
|
.line 153
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_insetLeft:I
|
|
|
|
.line 154
|
|
.line 155
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
.line 156
|
|
.line 157
|
|
.line 158
|
|
move-result v0
|
|
|
|
.line 159
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->f:I
|
|
|
|
.line 160
|
|
.line 161
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_insetRight:I
|
|
|
|
.line 162
|
|
.line 163
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
.line 164
|
|
.line 165
|
|
.line 166
|
|
move-result v0
|
|
|
|
.line 167
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->g:I
|
|
|
|
.line 168
|
|
.line 169
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_insetTop:I
|
|
|
|
.line 170
|
|
.line 171
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
.line 172
|
|
.line 173
|
|
.line 174
|
|
move-result v0
|
|
|
|
.line 175
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->h:I
|
|
|
|
.line 176
|
|
.line 177
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_insetBottom:I
|
|
|
|
.line 178
|
|
.line 179
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
|
|
|
|
.line 180
|
|
.line 181
|
|
.line 182
|
|
move-result v0
|
|
|
|
.line 183
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->i:I
|
|
|
|
.line 184
|
|
.line 185
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_cornerRadius:I
|
|
|
|
.line 186
|
|
.line 187
|
|
invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 188
|
|
.line 189
|
|
.line 190
|
|
move-result v0
|
|
|
|
.line 191
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 192
|
|
.line 193
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_cornerRadius:I
|
|
|
|
.line 194
|
|
.line 195
|
|
invoke-virtual {p2, v0, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 196
|
|
.line 197
|
|
.line 198
|
|
move-result v0
|
|
|
|
.line 199
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->j:I
|
|
|
|
.line 200
|
|
.line 201
|
|
iget-object v4, v3, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 202
|
|
.line 203
|
|
int-to-float v0, v0
|
|
|
|
.line 204
|
|
invoke-virtual {v4}, Lcom/google/android/material/shape/ShapeAppearanceModel;->g()Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
|
|
|
|
.line 205
|
|
.line 206
|
|
.line 207
|
|
move-result-object v4
|
|
|
|
.line 208
|
|
invoke-virtual {v4, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->d(F)V
|
|
|
|
.line 209
|
|
.line 210
|
|
.line 211
|
|
invoke-virtual {v4, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->e(F)V
|
|
|
|
.line 212
|
|
.line 213
|
|
.line 214
|
|
invoke-virtual {v4, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->c(F)V
|
|
|
|
.line 215
|
|
.line 216
|
|
.line 217
|
|
invoke-virtual {v4, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->b(F)V
|
|
|
|
.line 218
|
|
.line 219
|
|
.line 220
|
|
invoke-virtual {v4}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->a()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 221
|
|
.line 222
|
|
.line 223
|
|
move-result-object v0
|
|
|
|
.line 224
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 225
|
|
.line 226
|
|
const/4 v0, 0x0
|
|
|
|
.line 227
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 228
|
|
.line 229
|
|
invoke-virtual {v3}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 230
|
|
.line 231
|
|
.line 232
|
|
iput-boolean v7, v3, Lcom/google/android/material/button/MaterialButtonHelper;->s:Z
|
|
|
|
.line 233
|
|
.line 234
|
|
:cond_1
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_strokeWidth:I
|
|
|
|
.line 235
|
|
.line 236
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 237
|
|
.line 238
|
|
.line 239
|
|
move-result v0
|
|
|
|
.line 240
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->k:I
|
|
|
|
.line 241
|
|
.line 242
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_backgroundTintMode:I
|
|
|
|
.line 243
|
|
.line 244
|
|
invoke-virtual {p2, v0, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 245
|
|
.line 246
|
|
.line 247
|
|
move-result v0
|
|
|
|
.line 248
|
|
invoke-static {v0, v5}, Lcom/google/android/material/internal/ViewUtils;->c(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 249
|
|
.line 250
|
|
.line 251
|
|
move-result-object v0
|
|
|
|
.line 252
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 253
|
|
.line 254
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 255
|
|
.line 256
|
|
.line 257
|
|
move-result-object v0
|
|
|
|
.line 258
|
|
sget v4, Lcom/google/android/material/R$styleable;->MaterialButton_backgroundTint:I
|
|
|
|
.line 259
|
|
.line 260
|
|
invoke-static {v0, p2, v4}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 261
|
|
.line 262
|
|
.line 263
|
|
move-result-object v0
|
|
|
|
.line 264
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 265
|
|
.line 266
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 267
|
|
.line 268
|
|
.line 269
|
|
move-result-object v0
|
|
|
|
.line 270
|
|
sget v4, Lcom/google/android/material/R$styleable;->MaterialButton_strokeColor:I
|
|
|
|
.line 271
|
|
.line 272
|
|
invoke-static {v0, p2, v4}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 273
|
|
.line 274
|
|
.line 275
|
|
move-result-object v0
|
|
|
|
.line 276
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->n:Landroid/content/res/ColorStateList;
|
|
|
|
.line 277
|
|
.line 278
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 279
|
|
.line 280
|
|
.line 281
|
|
move-result-object v0
|
|
|
|
.line 282
|
|
sget v4, Lcom/google/android/material/R$styleable;->MaterialButton_rippleColor:I
|
|
|
|
.line 283
|
|
.line 284
|
|
invoke-static {v0, p2, v4}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 285
|
|
.line 286
|
|
.line 287
|
|
move-result-object v0
|
|
|
|
.line 288
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->o:Landroid/content/res/ColorStateList;
|
|
|
|
.line 289
|
|
.line 290
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_checkable:I
|
|
|
|
.line 291
|
|
.line 292
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 293
|
|
.line 294
|
|
.line 295
|
|
move-result v0
|
|
|
|
.line 296
|
|
iput-boolean v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 297
|
|
.line 298
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_elevation:I
|
|
|
|
.line 299
|
|
.line 300
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 301
|
|
.line 302
|
|
.line 303
|
|
move-result v0
|
|
|
|
.line 304
|
|
iput v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->w:I
|
|
|
|
.line 305
|
|
.line 306
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_toggleCheckedStateOnClick:I
|
|
|
|
.line 307
|
|
.line 308
|
|
invoke-virtual {p2, v0, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 309
|
|
.line 310
|
|
.line 311
|
|
move-result v0
|
|
|
|
.line 312
|
|
iput-boolean v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->u:Z
|
|
|
|
.line 313
|
|
.line 314
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingStart()I
|
|
|
|
.line 315
|
|
.line 316
|
|
.line 317
|
|
move-result v0
|
|
|
|
.line 318
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 319
|
|
.line 320
|
|
.line 321
|
|
move-result v4
|
|
|
|
.line 322
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingEnd()I
|
|
|
|
.line 323
|
|
.line 324
|
|
.line 325
|
|
move-result v5
|
|
|
|
.line 326
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 327
|
|
.line 328
|
|
.line 329
|
|
move-result v6
|
|
|
|
.line 330
|
|
sget v8, Lcom/google/android/material/R$styleable;->MaterialButton_android_background:I
|
|
|
|
.line 331
|
|
.line 332
|
|
invoke-virtual {p2, v8}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 333
|
|
.line 334
|
|
.line 335
|
|
move-result v8
|
|
|
|
.line 336
|
|
if-eqz v8, :cond_2
|
|
|
|
.line 337
|
|
.line 338
|
|
iput-boolean v7, v3, Lcom/google/android/material/button/MaterialButtonHelper;->r:Z
|
|
|
|
.line 339
|
|
.line 340
|
|
iget-object v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 341
|
|
.line 342
|
|
invoke-virtual {p0, v8}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 343
|
|
.line 344
|
|
.line 345
|
|
iget-object v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 346
|
|
.line 347
|
|
invoke-virtual {p0, v8}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 348
|
|
.line 349
|
|
.line 350
|
|
goto :goto_1
|
|
|
|
.line 351
|
|
:cond_2
|
|
invoke-virtual {v3}, Lcom/google/android/material/button/MaterialButtonHelper;->c()V
|
|
|
|
.line 352
|
|
.line 353
|
|
.line 354
|
|
:goto_1
|
|
iget v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->f:I
|
|
|
|
.line 355
|
|
.line 356
|
|
add-int/2addr v0, v8
|
|
|
|
.line 357
|
|
iget v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->h:I
|
|
|
|
.line 358
|
|
.line 359
|
|
add-int/2addr v4, v8
|
|
|
|
.line 360
|
|
iget v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->g:I
|
|
|
|
.line 361
|
|
.line 362
|
|
add-int/2addr v5, v8
|
|
|
|
.line 363
|
|
iget v8, v3, Lcom/google/android/material/button/MaterialButtonHelper;->i:I
|
|
|
|
.line 364
|
|
.line 365
|
|
add-int/2addr v6, v8
|
|
|
|
.line 366
|
|
invoke-virtual {p0, v0, v4, v5, v6}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
.line 367
|
|
.line 368
|
|
.line 369
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialButton_android_checked:I
|
|
|
|
.line 370
|
|
.line 371
|
|
invoke-virtual {p2, v0, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 372
|
|
.line 373
|
|
.line 374
|
|
move-result v0
|
|
|
|
.line 375
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/button/MaterialButton;->setCheckedInternal(Z)V
|
|
|
|
.line 376
|
|
.line 377
|
|
.line 378
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 379
|
|
.line 380
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->d()Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 381
|
|
.line 382
|
|
.line 383
|
|
move-result-object v0
|
|
|
|
.line 384
|
|
iput-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->d:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 385
|
|
.line 386
|
|
iget-object v0, v3, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 387
|
|
.line 388
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 389
|
|
.line 390
|
|
invoke-virtual {v3}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 391
|
|
.line 392
|
|
.line 393
|
|
:cond_3
|
|
iput-object v2, v3, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 394
|
|
.line 395
|
|
invoke-virtual {v3}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 396
|
|
.line 397
|
|
.line 398
|
|
:cond_4
|
|
invoke-virtual {p0, v1}, Lcom/google/android/material/button/MaterialButton;->setOpticalCenterEnabled(Z)V
|
|
|
|
.line 399
|
|
.line 400
|
|
.line 401
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 402
|
|
.line 403
|
|
.line 404
|
|
iget p2, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 405
|
|
.line 406
|
|
invoke-virtual {p0, p2}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
|
|
|
|
.line 407
|
|
.line 408
|
|
.line 409
|
|
iget-object p2, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 410
|
|
.line 411
|
|
if-eqz p2, :cond_5
|
|
|
|
.line 412
|
|
.line 413
|
|
move p1, v7
|
|
|
|
.line 414
|
|
:cond_5
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 415
|
|
.line 416
|
|
.line 417
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Lcom/google/android/material/button/MaterialButton;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getOpticalCenterShift()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
iput v0, p0, Lcom/google/android/material/button/MaterialButton;->B:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->j()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic b(Lcom/google/android/material/button/MaterialButton;)F
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getDisplayedWidthIncrease()F
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic c(Lcom/google/android/material/button/MaterialButton;F)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setDisplayedWidthIncrease(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method private getActualTextAlignment()Landroid/text/Layout$Alignment;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getTextAlignment()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x1
|
|
|
|
.line 6
|
|
if-eq v0, v1, :cond_2
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v1, 0x6
|
|
|
|
.line 9
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v1, 0x3
|
|
|
|
.line 12
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 v1, 0x4
|
|
|
|
.line 15
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;
|
|
|
|
.line 18
|
|
.line 19
|
|
return-object v0
|
|
|
|
.line 20
|
|
:cond_0
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;
|
|
|
|
.line 21
|
|
.line 22
|
|
return-object v0
|
|
|
|
.line 23
|
|
:cond_1
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_OPPOSITE:Landroid/text/Layout$Alignment;
|
|
|
|
.line 24
|
|
.line 25
|
|
return-object v0
|
|
|
|
.line 26
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getGravityTextAlignment()Landroid/text/Layout$Alignment;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v0
|
|
|
|
.line 30
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getDisplayedWidthIncrease()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->G:F
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method private getGravityTextAlignment()Landroid/text/Layout$Alignment;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getGravity()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const v1, 0x800007
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
and-int/2addr v0, v1
|
|
|
|
.line 9
|
|
const/4 v1, 0x1
|
|
|
|
.line 10
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 v1, 0x5
|
|
|
|
.line 13
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
const v1, 0x800005
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;
|
|
|
|
.line 21
|
|
.line 22
|
|
return-object v0
|
|
|
|
.line 23
|
|
:cond_0
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_OPPOSITE:Landroid/text/Layout$Alignment;
|
|
|
|
.line 24
|
|
.line 25
|
|
return-object v0
|
|
|
|
.line 26
|
|
:cond_1
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;
|
|
|
|
.line 27
|
|
.line 28
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getOpticalCenterShift()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->A:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->C:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->i()F
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
const v1, 0x3de147ae # 0.11f
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
mul-float/2addr v0, v1
|
|
|
|
.line 26
|
|
float-to-int v0, v0
|
|
|
|
.line 27
|
|
return v0
|
|
|
|
.line 28
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private getTextHeight()I
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLineCount()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x1
|
|
|
|
.line 6
|
|
if-le v0, v1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v0
|
|
|
|
.line 12
|
|
invoke-virtual {v0}, Landroid/text/Layout;->getHeight()I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v0
|
|
|
|
.line 16
|
|
return v0
|
|
|
|
.line 17
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v1
|
|
|
|
.line 25
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v1
|
|
|
|
.line 29
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result-object v2
|
|
|
|
.line 33
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object v2
|
|
|
|
.line 39
|
|
invoke-interface {v2, v1, p0}, Landroid/text/method/TransformationMethod;->getTransformation(Ljava/lang/CharSequence;Landroid/view/View;)Ljava/lang/CharSequence;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result-object v1
|
|
|
|
.line 43
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v1
|
|
|
|
.line 47
|
|
:cond_1
|
|
new-instance v2, Landroid/graphics/Rect;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
const/4 v3, 0x0
|
|
|
|
.line 53
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result v4
|
|
|
|
.line 57
|
|
invoke-virtual {v0, v1, v3, v4, v2}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v0
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result-object v1
|
|
|
|
.line 68
|
|
invoke-virtual {v1}, Landroid/text/Layout;->getHeight()I
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result v1
|
|
|
|
.line 72
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result v0
|
|
|
|
.line 76
|
|
return v0
|
|
.end method
|
|
|
|
.method private getTextLayoutWidth()I
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLineCount()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
:goto_0
|
|
if-ge v2, v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v3
|
|
|
|
.line 13
|
|
invoke-virtual {v3, v2}, Landroid/text/Layout;->getLineWidth(I)F
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v3
|
|
|
|
.line 17
|
|
invoke-static {v1, v3}, Ljava/lang/Math;->max(FF)F
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v1
|
|
|
|
.line 21
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 22
|
|
.line 23
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:cond_0
|
|
float-to-double v0, v1
|
|
|
|
.line 25
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-wide v0
|
|
|
|
.line 29
|
|
double-to-int v0, v0
|
|
|
|
.line 30
|
|
return v0
|
|
.end method
|
|
|
|
.method private setCheckedInternal(Z)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eq v0, p1, :cond_4
|
|
|
|
.line 12
|
|
.line 13
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->refreshDrawableState()V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
instance-of p1, p1, Lcom/google/android/material/button/MaterialButtonToggleGroup;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
check-cast p1, Lcom/google/android/material/button/MaterialButtonToggleGroup;
|
|
|
|
.line 31
|
|
.line 32
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 33
|
|
.line 34
|
|
iget-boolean v1, p1, Lcom/google/android/material/button/MaterialButtonToggleGroup;->q:Z
|
|
|
|
.line 35
|
|
.line 36
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getId()I
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result v1
|
|
|
|
.line 43
|
|
invoke-virtual {p1, v1, v0}, Lcom/google/android/material/button/MaterialButtonToggleGroup;->f(IZ)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
:cond_1
|
|
:goto_0
|
|
iget-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->t:Z
|
|
|
|
.line 47
|
|
.line 48
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_2
|
|
|
|
.line 51
|
|
:cond_2
|
|
const/4 p1, 0x1
|
|
|
|
.line 52
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->t:Z
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object p1, p0, Lcom/google/android/material/button/MaterialButton;->i:Ljava/util/LinkedHashSet;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {p1}, Ljava/util/AbstractCollection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object p1
|
|
|
|
.line 60
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v0
|
|
|
|
.line 64
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v0
|
|
|
|
.line 70
|
|
check-cast v0, Lcom/google/android/material/button/MaterialButton$OnCheckedChangeListener;
|
|
|
|
.line 71
|
|
.line 72
|
|
iget-boolean v1, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-interface {v0, p0, v1}, Lcom/google/android/material/button/MaterialButton$OnCheckedChangeListener;->a(Lcom/google/android/material/button/MaterialButton;Z)V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
goto :goto_1
|
|
|
|
.line 78
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
.line 79
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->t:Z
|
|
|
|
.line 80
|
|
.line 81
|
|
:cond_4
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private setDisplayedWidthIncrease(F)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->G:F
|
|
|
|
.line 2
|
|
.line 3
|
|
cmpl-float v0, v0, p1
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 6
|
|
.line 7
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->G:F
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->j()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object p1
|
|
|
|
.line 19
|
|
instance-of p1, p1, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 20
|
|
.line 21
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
check-cast p1, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 28
|
|
.line 29
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->G:F
|
|
|
|
.line 30
|
|
.line 31
|
|
float-to-int v0, v0
|
|
|
|
.line 32
|
|
invoke-virtual {p1, p0}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result v1
|
|
|
|
.line 36
|
|
if-gez v1, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_2
|
|
|
|
.line 39
|
|
:cond_0
|
|
add-int/lit8 v2, v1, -0x1
|
|
|
|
.line 40
|
|
.line 41
|
|
:goto_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 42
|
|
if-ltz v2, :cond_2
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p1, v2}, Lcom/google/android/material/button/MaterialButtonGroup;->c(I)Z
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v4
|
|
|
|
.line 48
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {p1, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v2
|
|
|
|
.line 54
|
|
check-cast v2, Lcom/google/android/material/button/MaterialButton;
|
|
|
|
.line 55
|
|
.line 56
|
|
goto :goto_1
|
|
|
|
.line 57
|
|
:cond_1
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
.line 58
|
|
.line 59
|
|
goto :goto_0
|
|
|
|
.line 60
|
|
:cond_2
|
|
move-object v2, v3
|
|
|
|
.line 61
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result v4
|
|
|
|
.line 65
|
|
:cond_3
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 66
|
|
.line 67
|
|
if-ge v1, v4, :cond_4
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {p1, v1}, Lcom/google/android/material/button/MaterialButtonGroup;->c(I)Z
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result v5
|
|
|
|
.line 73
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result-object p1
|
|
|
|
.line 79
|
|
move-object v3, p1
|
|
|
|
.line 80
|
|
check-cast v3, Lcom/google/android/material/button/MaterialButton;
|
|
|
|
.line 81
|
|
.line 82
|
|
:cond_4
|
|
if-nez v2, :cond_5
|
|
|
|
.line 83
|
|
.line 84
|
|
if-nez v3, :cond_5
|
|
|
|
.line 85
|
|
.line 86
|
|
goto :goto_2
|
|
|
|
.line 87
|
|
:cond_5
|
|
if-nez v2, :cond_6
|
|
|
|
.line 88
|
|
.line 89
|
|
invoke-virtual {v3, v0}, Lcom/google/android/material/button/MaterialButton;->setDisplayedWidthDecrease(I)V
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
:cond_6
|
|
if-nez v3, :cond_7
|
|
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {v2, v0}, Lcom/google/android/material/button/MaterialButton;->setDisplayedWidthDecrease(I)V
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
:cond_7
|
|
if-eqz v2, :cond_8
|
|
|
|
.line 98
|
|
.line 99
|
|
if-eqz v3, :cond_8
|
|
|
|
.line 100
|
|
.line 101
|
|
div-int/lit8 p1, v0, 0x2
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-virtual {v2, p1}, Lcom/google/android/material/button/MaterialButton;->setDisplayedWidthDecrease(I)V
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 107
|
|
.line 108
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
.line 109
|
|
.line 110
|
|
invoke-virtual {v3, v0}, Lcom/google/android/material/button/MaterialButton;->setDisplayedWidthDecrease(I)V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
:cond_8
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final d()Landroidx/dynamicanimation/animation/SpringForce;
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
sget v1, Lcom/google/android/material/R$attr;->motionSpringFastSpatial:I
|
|
|
|
.line 6
|
|
.line 7
|
|
sget v2, Lcom/google/android/material/R$style;->Motion_Material3_Spring_Standard_Fast_Spatial:I
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-static {v0, v1}, Lcom/google/android/material/resources/MaterialAttributes;->a(Landroid/content/Context;I)Landroid/util/TypedValue;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v1
|
|
|
|
.line 13
|
|
if-nez v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
sget-object v1, Lcom/google/android/material/R$styleable;->MaterialSpring:[I
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v3, 0x0
|
|
|
|
.line 18
|
|
const/4 v4, 0x0
|
|
|
|
.line 19
|
|
invoke-virtual {v0, v4, v1, v3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v0
|
|
|
|
.line 23
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:cond_0
|
|
iget v1, v1, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->MaterialSpring:[I
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v0
|
|
|
|
.line 32
|
|
:goto_0
|
|
new-instance v1, Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-direct {v1}, Landroidx/dynamicanimation/animation/SpringForce;-><init>()V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
:try_start_0
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialSpring_stiffness:I
|
|
|
|
.line 38
|
|
.line 39
|
|
const/4 v3, 0x1
|
|
|
|
.line 40
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v2
|
|
|
|
.line 44
|
|
cmpl-float v4, v2, v3
|
|
|
|
.line 45
|
|
.line 46
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 47
|
|
.line 48
|
|
sget v4, Lcom/google/android/material/R$styleable;->MaterialSpring_damping:I
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result v4
|
|
|
|
.line 54
|
|
cmpl-float v3, v4, v3
|
|
|
|
.line 55
|
|
.line 56
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v1, v2}, Landroidx/dynamicanimation/animation/SpringForce;->b(F)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v1, v4}, Landroidx/dynamicanimation/animation/SpringForce;->a(F)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
return-object v1
|
|
|
|
.line 68
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 69
|
|
goto :goto_1
|
|
|
|
.line 70
|
|
:cond_1
|
|
:try_start_1
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 71
|
|
.line 72
|
|
const-string v2, "A MaterialSpring style must have a damping value."
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
throw v1
|
|
|
|
.line 78
|
|
:cond_2
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 79
|
|
.line 80
|
|
const-string v2, "A MaterialSpring style must have stiffness value."
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
throw v1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 86
|
|
:goto_1
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final e()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->r:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
if-nez v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v0, 0x1
|
|
|
|
.line 10
|
|
return v0
|
|
|
|
.line 11
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
return v0
|
|
.end method
|
|
|
|
.method public final f(Z)V
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->E:Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto/16 :goto_7
|
|
|
|
.line 6
|
|
.line 7
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->I:Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v0, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance v0, Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.line 12
|
|
.line 13
|
|
sget-object v1, Lcom/google/android/material/button/MaterialButton;->N:Landroidx/dynamicanimation/animation/FloatPropertyCompat;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-direct {v0, p0, v1}, Landroidx/dynamicanimation/animation/SpringAnimation;-><init>(Lcom/google/android/material/shape/Shapeable;Landroidx/dynamicanimation/animation/FloatPropertyCompat;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iput-object v0, p0, Lcom/google/android/material/button/MaterialButton;->I:Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->d()Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
iput-object v1, v0, Landroidx/dynamicanimation/animation/SpringAnimation;->r:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 25
|
|
.line 26
|
|
:cond_1
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->C:Z
|
|
|
|
.line 27
|
|
.line 28
|
|
if-eqz v0, :cond_a
|
|
|
|
.line 29
|
|
.line 30
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->F:I
|
|
|
|
.line 31
|
|
.line 32
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->E:Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getDrawableState()[I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v2
|
|
|
|
.line 38
|
|
iget-object v3, v1, Lcom/google/android/material/shape/StateListSizeChange;->c:[[I
|
|
|
|
.line 39
|
|
.line 40
|
|
const/4 v4, 0x0
|
|
|
|
.line 41
|
|
move v5, v4
|
|
|
|
.line 42
|
|
:goto_0
|
|
iget v6, v1, Lcom/google/android/material/shape/StateListSizeChange;->a:I
|
|
|
|
.line 43
|
|
.line 44
|
|
const/4 v7, -0x1
|
|
|
|
.line 45
|
|
if-ge v5, v6, :cond_3
|
|
|
|
.line 46
|
|
.line 47
|
|
aget-object v6, v3, v5
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-static {v6, v2}, Landroid/util/StateSet;->stateSetMatches([I[I)Z
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v6
|
|
|
|
.line 53
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 54
|
|
.line 55
|
|
goto :goto_1
|
|
|
|
.line 56
|
|
:cond_2
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
.line 57
|
|
.line 58
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:cond_3
|
|
move v5, v7
|
|
|
|
.line 60
|
|
:goto_1
|
|
if-gez v5, :cond_6
|
|
|
|
.line 61
|
|
.line 62
|
|
sget-object v2, Landroid/util/StateSet;->WILD_CARD:[I
|
|
|
|
.line 63
|
|
.line 64
|
|
iget-object v3, v1, Lcom/google/android/material/shape/StateListSizeChange;->c:[[I
|
|
|
|
.line 65
|
|
.line 66
|
|
move v5, v4
|
|
|
|
.line 67
|
|
:goto_2
|
|
iget v6, v1, Lcom/google/android/material/shape/StateListSizeChange;->a:I
|
|
|
|
.line 68
|
|
.line 69
|
|
if-ge v5, v6, :cond_5
|
|
|
|
.line 70
|
|
.line 71
|
|
aget-object v6, v3, v5
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-static {v6, v2}, Landroid/util/StateSet;->stateSetMatches([I[I)Z
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result v6
|
|
|
|
.line 77
|
|
if-eqz v6, :cond_4
|
|
|
|
.line 78
|
|
.line 79
|
|
move v7, v5
|
|
|
|
.line 80
|
|
goto :goto_3
|
|
|
|
.line 81
|
|
:cond_4
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
.line 82
|
|
.line 83
|
|
goto :goto_2
|
|
|
|
.line 84
|
|
:cond_5
|
|
:goto_3
|
|
move v5, v7
|
|
|
|
.line 85
|
|
:cond_6
|
|
if-gez v5, :cond_7
|
|
|
|
.line 86
|
|
.line 87
|
|
iget-object v1, v1, Lcom/google/android/material/shape/StateListSizeChange;->b:Lcom/google/android/material/shape/StateListSizeChange$SizeChange;
|
|
|
|
.line 88
|
|
.line 89
|
|
goto :goto_4
|
|
|
|
.line 90
|
|
:cond_7
|
|
iget-object v1, v1, Lcom/google/android/material/shape/StateListSizeChange;->d:[Lcom/google/android/material/shape/StateListSizeChange$SizeChange;
|
|
|
|
.line 91
|
|
.line 92
|
|
aget-object v1, v1, v5
|
|
|
|
.line 93
|
|
.line 94
|
|
:goto_4
|
|
iget-object v1, v1, Lcom/google/android/material/shape/StateListSizeChange$SizeChange;->a:Lcom/google/android/material/shape/StateListSizeChange$SizeChangeAmount;
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result v2
|
|
|
|
.line 100
|
|
iget v3, v1, Lcom/google/android/material/shape/StateListSizeChange$SizeChangeAmount;->b:F
|
|
|
|
.line 101
|
|
.line 102
|
|
iget-object v1, v1, Lcom/google/android/material/shape/StateListSizeChange$SizeChangeAmount;->a:Lcom/google/android/material/shape/StateListSizeChange$SizeChangeType;
|
|
|
|
.line 103
|
|
.line 104
|
|
sget-object v5, Lcom/google/android/material/shape/StateListSizeChange$SizeChangeType;->c:Lcom/google/android/material/shape/StateListSizeChange$SizeChangeType;
|
|
|
|
.line 105
|
|
.line 106
|
|
if-ne v1, v5, :cond_8
|
|
|
|
.line 107
|
|
.line 108
|
|
int-to-float v1, v2
|
|
|
|
.line 109
|
|
mul-float/2addr v3, v1
|
|
|
|
.line 110
|
|
:goto_5
|
|
float-to-int v4, v3
|
|
|
|
.line 111
|
|
goto :goto_6
|
|
|
|
.line 112
|
|
:cond_8
|
|
sget-object v2, Lcom/google/android/material/shape/StateListSizeChange$SizeChangeType;->f:Lcom/google/android/material/shape/StateListSizeChange$SizeChangeType;
|
|
|
|
.line 113
|
|
.line 114
|
|
if-ne v1, v2, :cond_9
|
|
|
|
.line 115
|
|
.line 116
|
|
goto :goto_5
|
|
|
|
.line 117
|
|
:cond_9
|
|
:goto_6
|
|
invoke-static {v0, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 118
|
|
.line 119
|
|
.line 120
|
|
move-result v0
|
|
|
|
.line 121
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->I:Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.line 122
|
|
.line 123
|
|
int-to-float v0, v0
|
|
|
|
.line 124
|
|
invoke-virtual {v1, v0}, Landroidx/dynamicanimation/animation/SpringAnimation;->e(F)V
|
|
|
|
.line 125
|
|
.line 126
|
|
.line 127
|
|
if-eqz p1, :cond_a
|
|
|
|
.line 128
|
|
.line 129
|
|
iget-object p1, p0, Lcom/google/android/material/button/MaterialButton;->I:Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
.line 130
|
|
.line 131
|
|
invoke-virtual {p1}, Landroidx/dynamicanimation/animation/SpringAnimation;->f()V
|
|
|
|
.line 132
|
|
.line 133
|
|
.line 134
|
|
:cond_a
|
|
:goto_7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
if-eq v0, v1, :cond_5
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v1, 0x2
|
|
|
|
.line 8
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
goto :goto_2
|
|
|
|
.line 11
|
|
:cond_0
|
|
const/4 v1, 0x3
|
|
|
|
.line 12
|
|
if-eq v0, v1, :cond_4
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 v1, 0x4
|
|
|
|
.line 15
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
goto :goto_1
|
|
|
|
.line 18
|
|
:cond_1
|
|
const/16 v1, 0x10
|
|
|
|
.line 19
|
|
.line 20
|
|
if-eq v0, v1, :cond_3
|
|
|
|
.line 21
|
|
.line 22
|
|
const/16 v1, 0x20
|
|
|
|
.line 23
|
|
.line 24
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 25
|
|
.line 26
|
|
goto :goto_0
|
|
|
|
.line 27
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 28
|
|
:cond_3
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p0, v2, v0, v2, v2}, Landroid/widget/TextView;->setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
return-void
|
|
|
|
.line 34
|
|
:cond_4
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {p0, v2, v2, v0, v2}, Landroid/widget/TextView;->setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-void
|
|
|
|
.line 40
|
|
:cond_5
|
|
:goto_2
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p0, v0, v2, v2, v2}, Landroid/widget/TextView;->setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
return-void
|
|
.end method
|
|
|
|
.method public getA11yClassName()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"KotlinPropertyAccess"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->n:Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-nez v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->n:Ljava/lang/String;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
const-class v0, Landroid/widget/CompoundButton;
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:cond_1
|
|
const-class v0, Landroid/widget/Button;
|
|
|
|
.line 24
|
|
.line 25
|
|
:goto_0
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getAllowedWidthDecrease()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->D:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCornerRadius()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->j:I
|
|
|
|
.line 10
|
|
.line 11
|
|
return v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCornerSpringForce()Landroidx/dynamicanimation/animation/SpringForce;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->d:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 4
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIconGravity()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIconPadding()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIconSize()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIconTint()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->l:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIconTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getInsetBottom()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->i:I
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public getInsetTop()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->h:I
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRippleColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->o:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 13
|
|
.line 14
|
|
const-string v1, "Attempted to get ShapeAppearanceModel from a MaterialButton which has an overwritten background."
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getStateListShapeAppearanceModel()Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 13
|
|
.line 14
|
|
const-string v1, "Attempted to get StateListShapeAppearanceModel from a MaterialButton which has an overwritten background."
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getStrokeColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->n:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getStrokeWidth()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->k:I
|
|
|
|
.line 10
|
|
.line 11
|
|
return v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AppCompatButton;->getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AppCompatButton;->getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h(Z)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
iput-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v2, p0, Lcom/google/android/material/button/MaterialButton;->l:Landroid/content/res/ColorStateList;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iget-object v2, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v2, v0}, Landroid/graphics/drawable/Drawable;->setTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 27
|
|
.line 28
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
goto :goto_0
|
|
|
|
.line 31
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result v0
|
|
|
|
.line 37
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 38
|
|
.line 39
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 40
|
|
.line 41
|
|
goto :goto_1
|
|
|
|
.line 42
|
|
:cond_2
|
|
iget-object v2, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v2
|
|
|
|
.line 48
|
|
:goto_1
|
|
iget-object v3, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 49
|
|
.line 50
|
|
iget v4, p0, Lcom/google/android/material/button/MaterialButton;->p:I
|
|
|
|
.line 51
|
|
.line 52
|
|
iget v5, p0, Lcom/google/android/material/button/MaterialButton;->q:I
|
|
|
|
.line 53
|
|
.line 54
|
|
add-int/2addr v0, v4
|
|
|
|
.line 55
|
|
add-int/2addr v2, v5
|
|
|
|
.line 56
|
|
invoke-virtual {v3, v4, v5, v0, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v0, v1, p1}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
:cond_3
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->g()V
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
return-void
|
|
|
|
.line 70
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getCompoundDrawablesRelative()[Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result-object p1
|
|
|
|
.line 74
|
|
const/4 v0, 0x0
|
|
|
|
.line 75
|
|
aget-object v0, p1, v0
|
|
|
|
.line 76
|
|
.line 77
|
|
aget-object v2, p1, v1
|
|
|
|
.line 78
|
|
.line 79
|
|
const/4 v3, 0x2
|
|
|
|
.line 80
|
|
aget-object p1, p1, v3
|
|
|
|
.line 81
|
|
.line 82
|
|
iget v4, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 83
|
|
.line 84
|
|
if-eq v4, v1, :cond_5
|
|
|
|
.line 85
|
|
.line 86
|
|
if-ne v4, v3, :cond_6
|
|
|
|
.line 87
|
|
.line 88
|
|
:cond_5
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 89
|
|
.line 90
|
|
if-ne v0, v1, :cond_c
|
|
|
|
.line 91
|
|
.line 92
|
|
:cond_6
|
|
const/4 v0, 0x3
|
|
|
|
.line 93
|
|
if-eq v4, v0, :cond_7
|
|
|
|
.line 94
|
|
.line 95
|
|
const/4 v0, 0x4
|
|
|
|
.line 96
|
|
if-ne v4, v0, :cond_8
|
|
|
|
.line 97
|
|
.line 98
|
|
:cond_7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 99
|
|
.line 100
|
|
if-ne p1, v0, :cond_c
|
|
|
|
.line 101
|
|
.line 102
|
|
:cond_8
|
|
const/16 p1, 0x10
|
|
|
|
.line 103
|
|
.line 104
|
|
if-eq v4, p1, :cond_a
|
|
|
|
.line 105
|
|
.line 106
|
|
const/16 p1, 0x20
|
|
|
|
.line 107
|
|
.line 108
|
|
if-ne v4, p1, :cond_9
|
|
|
|
.line 109
|
|
.line 110
|
|
goto :goto_2
|
|
|
|
.line 111
|
|
:cond_9
|
|
return-void
|
|
|
|
.line 112
|
|
:cond_a
|
|
:goto_2
|
|
iget-object p1, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 113
|
|
.line 114
|
|
if-eq v2, p1, :cond_b
|
|
|
|
.line 115
|
|
.line 116
|
|
goto :goto_3
|
|
|
|
.line 117
|
|
:cond_b
|
|
return-void
|
|
|
|
.line 118
|
|
:cond_c
|
|
:goto_3
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->g()V
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
return-void
|
|
.end method
|
|
|
|
.method public final i(II)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
if-nez v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
goto/16 :goto_5
|
|
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 v1, 0x3
|
|
|
|
.line 16
|
|
const/4 v2, 0x4
|
|
|
|
.line 17
|
|
const/4 v3, 0x1
|
|
|
|
.line 18
|
|
const/4 v4, 0x2
|
|
|
|
.line 19
|
|
const/4 v5, 0x0
|
|
|
|
.line 20
|
|
if-eq v0, v3, :cond_7
|
|
|
|
.line 21
|
|
.line 22
|
|
if-ne v0, v4, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
goto :goto_1
|
|
|
|
.line 25
|
|
:cond_1
|
|
if-eq v0, v1, :cond_7
|
|
|
|
.line 26
|
|
.line 27
|
|
if-ne v0, v2, :cond_2
|
|
|
|
.line 28
|
|
.line 29
|
|
goto :goto_1
|
|
|
|
.line 30
|
|
:cond_2
|
|
const/16 p1, 0x10
|
|
|
|
.line 31
|
|
.line 32
|
|
if-eq v0, p1, :cond_4
|
|
|
|
.line 33
|
|
.line 34
|
|
const/16 v1, 0x20
|
|
|
|
.line 35
|
|
.line 36
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_3
|
|
return-void
|
|
|
|
.line 40
|
|
:cond_4
|
|
:goto_0
|
|
iput v5, p0, Lcom/google/android/material/button/MaterialButton;->p:I
|
|
|
|
.line 41
|
|
.line 42
|
|
if-ne v0, p1, :cond_5
|
|
|
|
.line 43
|
|
.line 44
|
|
iput v5, p0, Lcom/google/android/material/button/MaterialButton;->q:I
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {p0, v5}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
return-void
|
|
|
|
.line 50
|
|
:cond_5
|
|
iget p1, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 51
|
|
.line 52
|
|
if-nez p1, :cond_6
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object p1, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result p1
|
|
|
|
.line 60
|
|
:cond_6
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getTextHeight()I
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v0
|
|
|
|
.line 64
|
|
sub-int/2addr p2, v0
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v0
|
|
|
|
.line 69
|
|
sub-int/2addr p2, v0
|
|
|
|
.line 70
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 71
|
|
iget p1, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 72
|
|
.line 73
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 74
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result p1
|
|
|
|
.line 78
|
|
sub-int/2addr p2, p1
|
|
|
|
.line 79
|
|
div-int/2addr p2, v4
|
|
|
|
.line 80
|
|
invoke-static {v5, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result p1
|
|
|
|
.line 84
|
|
iget p2, p0, Lcom/google/android/material/button/MaterialButton;->q:I
|
|
|
|
.line 85
|
|
.line 86
|
|
if-eq p2, p1, :cond_10
|
|
|
|
.line 87
|
|
.line 88
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->q:I
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {p0, v5}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
return-void
|
|
|
|
.line 94
|
|
:cond_7
|
|
:goto_1
|
|
iput v5, p0, Lcom/google/android/material/button/MaterialButton;->q:I
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getActualTextAlignment()Landroid/text/Layout$Alignment;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object p2
|
|
|
|
.line 100
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 101
|
|
.line 102
|
|
if-eq v0, v3, :cond_f
|
|
|
|
.line 103
|
|
.line 104
|
|
if-eq v0, v1, :cond_f
|
|
|
|
.line 105
|
|
.line 106
|
|
if-ne v0, v4, :cond_8
|
|
|
|
.line 107
|
|
.line 108
|
|
sget-object v1, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;
|
|
|
|
.line 109
|
|
.line 110
|
|
if-eq p2, v1, :cond_f
|
|
|
|
.line 111
|
|
.line 112
|
|
:cond_8
|
|
if-ne v0, v2, :cond_9
|
|
|
|
.line 113
|
|
.line 114
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_OPPOSITE:Landroid/text/Layout$Alignment;
|
|
|
|
.line 115
|
|
.line 116
|
|
if-ne p2, v0, :cond_9
|
|
|
|
.line 117
|
|
.line 118
|
|
goto :goto_4
|
|
|
|
.line 119
|
|
:cond_9
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 120
|
|
.line 121
|
|
if-nez v0, :cond_a
|
|
|
|
.line 122
|
|
.line 123
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 124
|
|
.line 125
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 126
|
|
.line 127
|
|
.line 128
|
|
move-result v0
|
|
|
|
.line 129
|
|
:cond_a
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getTextLayoutWidth()I
|
|
|
|
.line 130
|
|
.line 131
|
|
.line 132
|
|
move-result v1
|
|
|
|
.line 133
|
|
sub-int/2addr p1, v1
|
|
|
|
.line 134
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingEnd()I
|
|
|
|
.line 135
|
|
.line 136
|
|
.line 137
|
|
move-result v1
|
|
|
|
.line 138
|
|
sub-int/2addr p1, v1
|
|
|
|
.line 139
|
|
sub-int/2addr p1, v0
|
|
|
|
.line 140
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 141
|
|
.line 142
|
|
sub-int/2addr p1, v0
|
|
|
|
.line 143
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingStart()I
|
|
|
|
.line 144
|
|
.line 145
|
|
.line 146
|
|
move-result v0
|
|
|
|
.line 147
|
|
sub-int/2addr p1, v0
|
|
|
|
.line 148
|
|
sget-object v0, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;
|
|
|
|
.line 149
|
|
.line 150
|
|
if-ne p2, v0, :cond_b
|
|
|
|
.line 151
|
|
.line 152
|
|
div-int/lit8 p1, p1, 0x2
|
|
|
|
.line 153
|
|
.line 154
|
|
:cond_b
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
move-result p2
|
|
|
|
.line 158
|
|
if-ne p2, v3, :cond_c
|
|
|
|
.line 159
|
|
.line 160
|
|
move p2, v3
|
|
|
|
.line 161
|
|
goto :goto_2
|
|
|
|
.line 162
|
|
:cond_c
|
|
move p2, v5
|
|
|
|
.line 163
|
|
:goto_2
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 164
|
|
.line 165
|
|
if-ne v0, v2, :cond_d
|
|
|
|
.line 166
|
|
.line 167
|
|
goto :goto_3
|
|
|
|
.line 168
|
|
:cond_d
|
|
move v3, v5
|
|
|
|
.line 169
|
|
:goto_3
|
|
if-eq p2, v3, :cond_e
|
|
|
|
.line 170
|
|
.line 171
|
|
neg-int p1, p1
|
|
|
|
.line 172
|
|
:cond_e
|
|
iget p2, p0, Lcom/google/android/material/button/MaterialButton;->p:I
|
|
|
|
.line 173
|
|
.line 174
|
|
if-eq p2, p1, :cond_10
|
|
|
|
.line 175
|
|
.line 176
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->p:I
|
|
|
|
.line 177
|
|
.line 178
|
|
invoke-virtual {p0, v5}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 179
|
|
.line 180
|
|
.line 181
|
|
return-void
|
|
|
|
.line 182
|
|
:cond_f
|
|
:goto_4
|
|
iput v5, p0, Lcom/google/android/material/button/MaterialButton;->p:I
|
|
|
|
.line 183
|
|
.line 184
|
|
invoke-virtual {p0, v5}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 185
|
|
.line 186
|
|
.line 187
|
|
:cond_10
|
|
:goto_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public final isChecked()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final j()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->G:F
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, p0, Lcom/google/android/material/button/MaterialButton;->H:F
|
|
|
|
.line 4
|
|
.line 5
|
|
sub-float/2addr v0, v1
|
|
|
|
.line 6
|
|
float-to-int v0, v0
|
|
|
|
.line 7
|
|
div-int/lit8 v1, v0, 0x2
|
|
|
|
.line 8
|
|
.line 9
|
|
iget v2, p0, Lcom/google/android/material/button/MaterialButton;->B:I
|
|
|
|
.line 10
|
|
.line 11
|
|
add-int/2addr v1, v2
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v2
|
|
|
|
.line 16
|
|
iget v3, p0, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 17
|
|
.line 18
|
|
int-to-float v4, v0
|
|
|
|
.line 19
|
|
add-float/2addr v3, v4
|
|
|
|
.line 20
|
|
float-to-int v3, v3
|
|
|
|
.line 21
|
|
iput v3, v2, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 22
|
|
.line 23
|
|
iget v2, p0, Lcom/google/android/material/button/MaterialButton;->x:I
|
|
|
|
.line 24
|
|
.line 25
|
|
add-int/2addr v2, v1
|
|
|
|
.line 26
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v3
|
|
|
|
.line 30
|
|
iget v4, p0, Lcom/google/android/material/button/MaterialButton;->y:I
|
|
|
|
.line 31
|
|
.line 32
|
|
add-int/2addr v4, v0
|
|
|
|
.line 33
|
|
sub-int/2addr v4, v1
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v0
|
|
|
|
.line 38
|
|
invoke-virtual {p0, v2, v3, v4, v0}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/Button;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 v1, 0x0
|
|
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
invoke-static {p0, v0}, Lcom/google/android/material/shape/MaterialShapeUtils;->c(Landroid/view/View;Lcom/google/android/material/shape/MaterialShapeDrawable;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreateDrawableState(I)[I
|
|
.locals 1
|
|
|
|
.line 1
|
|
add-int/lit8 p1, p1, 0x2
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->onCreateDrawableState(I)[I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
sget-object v0, Lcom/google/android/material/button/MaterialButton;->J:[I
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
sget-object v0, Lcom/google/android/material/button/MaterialButton;->K:[I
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->getA11yClassName()Ljava/lang/String;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityRecord;->setClassName(Ljava/lang/CharSequence;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityRecord;->setChecked(Z)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->getA11yClassName()Ljava/lang/String;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
const/4 v0, 0x1
|
|
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 22
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p0}, Landroid/view/View;->isClickable()Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v0
|
|
|
|
.line 34
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClickable(Z)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onLayout(ZIIII)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super/range {p0 .. p5}, Landroidx/appcompat/widget/AppCompatButton;->onLayout(ZIIII)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-object p1, p0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p2
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p3
|
|
|
|
.line 13
|
|
invoke-virtual {p0, p2, p3}, Lcom/google/android/material/button/MaterialButton;->i(II)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p2
|
|
|
|
.line 20
|
|
invoke-virtual {p2}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object p2
|
|
|
|
.line 24
|
|
iget p2, p2, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
.line 25
|
|
.line 26
|
|
iget p3, p1, Lcom/google/android/material/button/MaterialButton;->v:I
|
|
|
|
.line 27
|
|
.line 28
|
|
const/high16 p4, -0x40800000 # -1.0f
|
|
|
|
.line 29
|
|
.line 30
|
|
if-eq p3, p2, :cond_0
|
|
|
|
.line 31
|
|
.line 32
|
|
iput p2, p1, Lcom/google/android/material/button/MaterialButton;->v:I
|
|
|
|
.line 33
|
|
.line 34
|
|
iput p4, p1, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 35
|
|
.line 36
|
|
:cond_0
|
|
iget p2, p1, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 37
|
|
.line 38
|
|
cmpl-float p2, p2, p4
|
|
|
|
.line 39
|
|
.line 40
|
|
if-nez p2, :cond_1
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result p2
|
|
|
|
.line 46
|
|
int-to-float p2, p2
|
|
|
|
.line 47
|
|
iput p2, p1, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 48
|
|
.line 49
|
|
iget-object p2, p1, Lcom/google/android/material/button/MaterialButton;->z:Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 50
|
|
.line 51
|
|
if-nez p2, :cond_1
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p2
|
|
|
|
.line 57
|
|
instance-of p2, p2, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 58
|
|
.line 59
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object p2
|
|
|
|
.line 65
|
|
check-cast p2, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-virtual {p2}, Lcom/google/android/material/button/MaterialButtonGroup;->getButtonSizeChange()Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object p2
|
|
|
|
.line 71
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object p2
|
|
|
|
.line 77
|
|
check-cast p2, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 78
|
|
.line 79
|
|
iput-object p2, p1, Lcom/google/android/material/button/MaterialButton;->z:Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 80
|
|
.line 81
|
|
new-instance p2, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 82
|
|
.line 83
|
|
iget-object p3, p1, Lcom/google/android/material/button/MaterialButton;->z:Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 84
|
|
.line 85
|
|
invoke-direct {p2, p3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(Landroid/widget/LinearLayout$LayoutParams;)V
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
iget p3, p1, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 89
|
|
.line 90
|
|
float-to-int p3, p3
|
|
|
|
.line 91
|
|
iput p3, p2, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
:cond_1
|
|
iget p2, p1, Lcom/google/android/material/button/MaterialButton;->D:I
|
|
|
|
.line 97
|
|
.line 98
|
|
const/4 p3, 0x0
|
|
|
|
.line 99
|
|
const/4 p4, -0x1
|
|
|
|
.line 100
|
|
if-ne p2, p4, :cond_4
|
|
|
|
.line 101
|
|
.line 102
|
|
iget-object p2, p1, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 103
|
|
.line 104
|
|
if-nez p2, :cond_2
|
|
|
|
.line 105
|
|
.line 106
|
|
move p2, p3
|
|
|
|
.line 107
|
|
goto :goto_0
|
|
|
|
.line 108
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->getIconPadding()I
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
move-result p2
|
|
|
|
.line 112
|
|
iget p5, p1, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 113
|
|
.line 114
|
|
if-nez p5, :cond_3
|
|
|
|
.line 115
|
|
.line 116
|
|
iget-object p5, p1, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 117
|
|
.line 118
|
|
invoke-virtual {p5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
move-result p5
|
|
|
|
.line 122
|
|
:cond_3
|
|
add-int/2addr p2, p5
|
|
|
|
.line 123
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
move-result p5
|
|
|
|
.line 127
|
|
invoke-direct {p0}, Lcom/google/android/material/button/MaterialButton;->getTextLayoutWidth()I
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
move-result v0
|
|
|
|
.line 131
|
|
sub-int/2addr p5, v0
|
|
|
|
.line 132
|
|
sub-int/2addr p5, p2
|
|
|
|
.line 133
|
|
iput p5, p1, Lcom/google/android/material/button/MaterialButton;->D:I
|
|
|
|
.line 134
|
|
.line 135
|
|
:cond_4
|
|
iget p2, p1, Lcom/google/android/material/button/MaterialButton;->x:I
|
|
|
|
.line 136
|
|
.line 137
|
|
if-ne p2, p4, :cond_5
|
|
|
|
.line 138
|
|
.line 139
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingStart()I
|
|
|
|
.line 140
|
|
.line 141
|
|
.line 142
|
|
move-result p2
|
|
|
|
.line 143
|
|
iput p2, p1, Lcom/google/android/material/button/MaterialButton;->x:I
|
|
|
|
.line 144
|
|
.line 145
|
|
:cond_5
|
|
iget p2, p1, Lcom/google/android/material/button/MaterialButton;->y:I
|
|
|
|
.line 146
|
|
.line 147
|
|
if-ne p2, p4, :cond_6
|
|
|
|
.line 148
|
|
.line 149
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingEnd()I
|
|
|
|
.line 150
|
|
.line 151
|
|
.line 152
|
|
move-result p2
|
|
|
|
.line 153
|
|
iput p2, p1, Lcom/google/android/material/button/MaterialButton;->y:I
|
|
|
|
.line 154
|
|
.line 155
|
|
:cond_6
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 156
|
|
.line 157
|
|
.line 158
|
|
move-result-object p2
|
|
|
|
.line 159
|
|
instance-of p2, p2, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 160
|
|
.line 161
|
|
if-eqz p2, :cond_7
|
|
|
|
.line 162
|
|
.line 163
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 164
|
|
.line 165
|
|
.line 166
|
|
move-result-object p2
|
|
|
|
.line 167
|
|
check-cast p2, Lcom/google/android/material/button/MaterialButtonGroup;
|
|
|
|
.line 168
|
|
.line 169
|
|
invoke-virtual {p2}, Landroid/widget/LinearLayout;->getOrientation()I
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
move-result p2
|
|
|
|
.line 173
|
|
if-nez p2, :cond_7
|
|
|
|
.line 174
|
|
.line 175
|
|
const/4 p3, 0x1
|
|
|
|
.line 176
|
|
:cond_7
|
|
iput-boolean p3, p1, Lcom/google/android/material/button/MaterialButton;->C:Z
|
|
|
|
.line 177
|
|
.line 178
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/android/material/button/MaterialButton$SavedState;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
check-cast p1, Lcom/google/android/material/button/MaterialButton$SavedState;
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p1, Landroidx/customview/view/AbsSavedState;->c:Landroid/os/Parcelable;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-super {p0, v0}, Landroid/widget/Button;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget-boolean p1, p1, Lcom/google/android/material/button/MaterialButton$SavedState;->g:Z
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setChecked(Z)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/Button;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
new-instance v1, Lcom/google/android/material/button/MaterialButton$SavedState;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v1, v0}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
iput-boolean v0, v1, Lcom/google/android/material/button/MaterialButton$SavedState;->g:Z
|
|
|
|
.line 13
|
|
.line 14
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final onTextChanged(Ljava/lang/CharSequence;III)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatButton;->onTextChanged(Ljava/lang/CharSequence;III)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result p1
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result p2
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/button/MaterialButton;->i(II)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
return-void
|
|
.end method
|
|
|
|
.method public final performClick()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->isEnabled()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-boolean v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->u:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->toggle()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
:cond_0
|
|
invoke-super {p0}, Landroid/widget/Button;->performClick()Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v0
|
|
|
|
.line 20
|
|
return v0
|
|
.end method
|
|
|
|
.method public final refreshDrawableState()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/Button;->refreshDrawableState()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getDrawableState()[I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v0
|
|
|
|
.line 12
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v0
|
|
|
|
.line 18
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setA11yClassName(Ljava/lang/String;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->n:Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundColor(I)V
|
|
.locals 3
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v1, 0x0
|
|
|
|
.line 10
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v2
|
|
|
|
.line 14
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTint(I)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->setBackgroundColor(I)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v0, "MaterialButton"
|
|
|
|
.line 14
|
|
.line 15
|
|
const-string v1, "MaterialButton manages its own background to control elevation, shape, color and states. Consider using backgroundTint, shapeAppearance and other attributes where available. A custom background will ignore these attributes and you should consider handling interaction states such as pressed, focused and disabled"
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
const/4 v0, 0x1
|
|
|
|
.line 21
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 22
|
|
.line 23
|
|
iput-boolean v0, v1, Lcom/google/android/material/button/MaterialButtonHelper;->r:Z
|
|
|
|
.line 24
|
|
.line 25
|
|
iget-object v0, v1, Lcom/google/android/material/button/MaterialButtonHelper;->a:Lcom/google/android/material/button/MaterialButton;
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object v2, v1, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0, v2}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
iget-object v1, v1, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
return-void
|
|
|
|
.line 41
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object v0
|
|
|
|
.line 45
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result-object p1
|
|
|
|
.line 49
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
return-void
|
|
|
|
.line 53
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 13
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckable(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-boolean p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->t:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChecked(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setCheckedInternal(Z)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCornerRadius(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-boolean v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->s:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iget v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->j:I
|
|
|
|
.line 14
|
|
.line 15
|
|
if-eq v1, p1, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
iput p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->j:I
|
|
|
|
.line 18
|
|
.line 19
|
|
const/4 v1, 0x1
|
|
|
|
.line 20
|
|
iput-boolean v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->s:Z
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 23
|
|
.line 24
|
|
int-to-float p1, p1
|
|
|
|
.line 25
|
|
invoke-virtual {v1}, Lcom/google/android/material/shape/ShapeAppearanceModel;->g()Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v1
|
|
|
|
.line 29
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->d(F)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->e(F)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->c(F)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->b(F)V
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {v1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->a()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object p1
|
|
|
|
.line 45
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 46
|
|
.line 47
|
|
const/4 p1, 0x0
|
|
|
|
.line 48
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCornerRadiusResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setCornerRadius(I)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCornerSpringForce(Landroidx/dynamicanimation/animation/SpringForce;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/dynamicanimation/animation/SpringForce;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->d:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDisplayedWidthDecrease(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->D:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
int-to-float p1, p1
|
|
|
|
.line 8
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->H:F
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->j()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->setElevation(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 v1, 0x0
|
|
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->n(F)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIcon(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x1
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v0
|
|
|
|
.line 19
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/button/MaterialButton;->i(II)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconGravity(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->u:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result p1
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/button/MaterialButton;->i(II)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconPadding(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->r:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 13
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconSize(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
if-ltz p1, :cond_1
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->o:I
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 p1, 0x1
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 14
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "iconSize cannot be less than 0"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setIconTint(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->l:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->l:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->k:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->h(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconTintResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setIconTint(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInsetBottom(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->h:I
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, v1, p1}, Lcom/google/android/material/button/MaterialButtonHelper;->b(II)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInsetTop(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->i:I
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1, v1}, Lcom/google/android/material/button/MaterialButtonHelper;->b(II)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInternalBackground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnPressedChangeListenerInternal(Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->j:Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOpticalCenterEnabled(Z)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->A:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/button/MaterialButton;->A:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v0, 0x0
|
|
|
|
.line 8
|
|
iget-object v1, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
new-instance p1, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 v2, 0x5
|
|
|
|
.line 15
|
|
invoke-direct {p1, v2, p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iput-object p1, v1, Lcom/google/android/material/button/MaterialButtonHelper;->e:Lcom/google/android/material/shape/MaterialShapeDrawable$OnCornerSizeChangeListener;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v1, v0}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
iput-object p1, v0, Lcom/google/android/material/shape/MaterialShapeDrawable;->I:Lcom/google/android/material/shape/MaterialShapeDrawable$OnCornerSizeChangeListener;
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 30
|
|
iput-object p1, v1, Lcom/google/android/material/button/MaterialButtonHelper;->e:Lcom/google/android/material/shape/MaterialShapeDrawable$OnCornerSizeChangeListener;
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v1, v0}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object v0
|
|
|
|
.line 36
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 37
|
|
.line 38
|
|
iput-object p1, v0, Lcom/google/android/material/shape/MaterialShapeDrawable;->I:Lcom/google/android/material/shape/MaterialShapeDrawable$OnCornerSizeChangeListener;
|
|
|
|
.line 39
|
|
.line 40
|
|
:cond_1
|
|
:goto_0
|
|
new-instance p1, Landroidx/credentials/playservices/controllers/CreatePassword/a;
|
|
|
|
.line 41
|
|
.line 42
|
|
const/4 v0, 0x3
|
|
|
|
.line 43
|
|
invoke-direct {p1, v0, p0}, Landroidx/credentials/playservices/controllers/CreatePassword/a;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPressed(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->j:Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-interface {v0}, Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;->a()V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->setPressed(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const/4 p1, 0x0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->f(Z)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 3
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->a:Lcom/google/android/material/button/MaterialButton;
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v2, v0, Lcom/google/android/material/button/MaterialButtonHelper;->o:Landroid/content/res/ColorStateList;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eq v2, p1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->o:Landroid/content/res/ColorStateList;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v0
|
|
|
|
.line 21
|
|
instance-of v0, v0, Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 22
|
|
.line 23
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
check-cast v0, Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {p1}, Lcom/google/android/material/ripple/RippleUtils;->c(Landroid/content/res/ColorStateList;)Landroid/content/res/ColorStateList;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object p1
|
|
|
|
.line 35
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/RippleDrawable;->setColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColorResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->b:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 p1, 0x0
|
|
|
|
.line 12
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
|
|
.line 18
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 19
|
|
.line 20
|
|
const-string v0, "Attempted to set ShapeAppearanceModel on a MaterialButton which has an overwritten background."
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setShouldDrawSurfaceColorStroke(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-boolean p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->q:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->e()V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSizeChange(Lcom/google/android/material/shape/StateListSizeChange;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/shape/StateListSizeChange;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->E:Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/button/MaterialButton;->E:Lcom/google/android/material/shape/StateListSizeChange;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x1
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->f(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStateListShapeAppearanceModel(Lcom/google/android/material/shape/StateListShapeAppearanceModel;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->d:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-nez v1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p1}, Lcom/google/android/material/shape/StateListShapeAppearanceModel;->d()Z
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v1
|
|
|
|
.line 17
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->d()Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v1
|
|
|
|
.line 23
|
|
iput-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->d:Landroidx/dynamicanimation/animation/SpringForce;
|
|
|
|
.line 24
|
|
.line 25
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 26
|
|
.line 27
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
:cond_0
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->c:Lcom/google/android/material/shape/StateListShapeAppearanceModel;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->d()V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
return-void
|
|
|
|
.line 38
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 39
|
|
.line 40
|
|
const-string v0, "Attempted to set StateListShapeAppearanceModel on a MaterialButton which has an overwritten background."
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setStrokeColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 2
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->n:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->n:Landroid/content/res/ColorStateList;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->e()V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeColorResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setStrokeColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidth(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->k:I
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iput p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->k:I
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0}, Lcom/google/android/material/button/MaterialButtonHelper;->e()V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidthResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->setStrokeWidth(I)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 2
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v1
|
|
|
|
.line 20
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p1
|
|
|
|
.line 26
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->m:Landroid/content/res/ColorStateList;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 32
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 2
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/button/MaterialButton;->e()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iput-object p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v1
|
|
|
|
.line 20
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/button/MaterialButtonHelper;->a(Z)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
iget-object v0, v0, Lcom/google/android/material/button/MaterialButtonHelper;->l:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 36
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatButton;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAlignment(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->setTextAlignment(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result p1
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/button/MaterialButton;->i(II)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
return-void
|
|
.end method
|
|
|
|
.method public setToggleCheckedStateOnClick(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/button/MaterialButton;->h:Lcom/google/android/material/button/MaterialButtonHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iput-boolean p1, v0, Lcom/google/android/material/button/MaterialButtonHelper;->u:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setWidth(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const/high16 v0, -0x40800000 # -1.0f
|
|
|
|
.line 2
|
|
.line 3
|
|
iput v0, p0, Lcom/google/android/material/button/MaterialButton;->w:F
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/Button;->setWidth(I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setWidthChangeMax(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/button/MaterialButton;->F:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/button/MaterialButton;->F:I
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x1
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/button/MaterialButton;->f(Z)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toggle()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/button/MaterialButton;->s:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/button/MaterialButton;->setChecked(Z)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|