* 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>
9407 lines
199 KiB
Smali
9407 lines
199 KiB
Smali
.class public Lcom/google/android/material/chip/Chip;
|
|
.super Landroidx/appcompat/widget/AppCompatCheckBox;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/chip/ChipDrawable$Delegate;
|
|
.implements Lcom/google/android/material/shape/Shapeable;
|
|
.implements Lcom/google/android/material/internal/MaterialCheckable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/appcompat/widget/AppCompatCheckBox;",
|
|
"Lcom/google/android/material/chip/ChipDrawable$Delegate;",
|
|
"Lcom/google/android/material/shape/Shapeable;",
|
|
"Lcom/google/android/material/internal/MaterialCheckable<",
|
|
"Lcom/google/android/material/chip/Chip;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final B:I
|
|
|
|
.field public static final C:Landroid/graphics/Rect;
|
|
|
|
.field public static final D:[I
|
|
|
|
.field public static final E:[I
|
|
|
|
|
|
# instance fields
|
|
.field public final A:Lcom/google/android/material/resources/TextAppearanceFontCallback;
|
|
|
|
.field public i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.field public j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.field public k:Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.field public l:Landroid/view/View$OnClickListener;
|
|
|
|
.field public m:Landroid/widget/CompoundButton$OnCheckedChangeListener;
|
|
|
|
.field public n:Lcom/google/android/material/internal/MaterialCheckable$OnCheckedChangeListener;
|
|
|
|
.field public o:Z
|
|
|
|
.field public p:Z
|
|
|
|
.field public q:Z
|
|
|
|
.field public r:Z
|
|
|
|
.field public s:Z
|
|
|
|
.field public t:I
|
|
|
|
.field public u:I
|
|
|
|
.field public v:Ljava/lang/CharSequence;
|
|
|
|
.field public final w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.field public x:Z
|
|
|
|
.field public final y:Landroid/graphics/Rect;
|
|
|
|
.field public final z:Landroid/graphics/RectF;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_MaterialComponents_Chip_Action:I
|
|
|
|
.line 2
|
|
.line 3
|
|
sput v0, Lcom/google/android/material/chip/Chip;->B:I
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
sput-object v0, Lcom/google/android/material/chip/Chip;->C:Landroid/graphics/Rect;
|
|
|
|
.line 11
|
|
.line 12
|
|
const v0, 0x10100a1
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
sput-object v0, Lcom/google/android/material/chip/Chip;->D:[I
|
|
|
|
.line 20
|
|
.line 21
|
|
const v0, 0x101009f
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object v0
|
|
|
|
.line 28
|
|
sput-object v0, Lcom/google/android/material/chip/Chip;->E:[I
|
|
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 16
|
|
|
|
.line 1
|
|
move-object/from16 v0, p0
|
|
|
|
.line 2
|
|
.line 3
|
|
move-object/from16 v2, p2
|
|
|
|
.line 4
|
|
.line 5
|
|
sget v4, Lcom/google/android/material/R$attr;->chipStyle:I
|
|
|
|
.line 6
|
|
.line 7
|
|
sget v5, Lcom/google/android/material/chip/Chip;->B:I
|
|
|
|
.line 8
|
|
.line 9
|
|
move-object/from16 v1, p1
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {v1, v2, v4, v5}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v1
|
|
|
|
.line 15
|
|
invoke-direct {v0, v1, v2, v4}, Landroidx/appcompat/widget/AppCompatCheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
new-instance v1, Landroid/graphics/Rect;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
iput-object v1, v0, Lcom/google/android/material/chip/Chip;->y:Landroid/graphics/Rect;
|
|
|
|
.line 24
|
|
.line 25
|
|
new-instance v1, Landroid/graphics/RectF;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iput-object v1, v0, Lcom/google/android/material/chip/Chip;->z:Landroid/graphics/RectF;
|
|
|
|
.line 31
|
|
.line 32
|
|
new-instance v1, Lcom/google/android/material/chip/Chip$1;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/chip/Chip$1;-><init>(Lcom/google/android/material/chip/Chip;)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
iput-object v1, v0, Lcom/google/android/material/chip/Chip;->A:Lcom/google/android/material/resources/TextAppearanceFontCallback;
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result-object v7
|
|
|
|
.line 43
|
|
const v8, 0x800013
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
const/4 v9, 0x1
|
|
|
|
.line 47
|
|
if-nez v2, :cond_0
|
|
|
|
.line 48
|
|
.line 49
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_0
|
|
const-string v1, "background"
|
|
|
|
.line 51
|
|
.line 52
|
|
const-string v3, "http://schemas.android.com/apk/res/android"
|
|
|
|
.line 53
|
|
.line 54
|
|
invoke-interface {v2, v3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result-object v1
|
|
|
|
.line 58
|
|
const-string v6, "Chip"
|
|
|
|
.line 59
|
|
.line 60
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 61
|
|
.line 62
|
|
const-string v1, "Do not set the background; Chip manages its own background drawable."
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-static {v6, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
:cond_1
|
|
const-string v1, "drawableLeft"
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-interface {v2, v3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-object v1
|
|
|
|
.line 73
|
|
if-nez v1, :cond_21
|
|
|
|
.line 74
|
|
.line 75
|
|
const-string v1, "drawableStart"
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-interface {v2, v3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object v1
|
|
|
|
.line 81
|
|
if-nez v1, :cond_20
|
|
|
|
.line 82
|
|
.line 83
|
|
const-string v1, "drawableEnd"
|
|
|
|
.line 84
|
|
.line 85
|
|
invoke-interface {v2, v3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
move-result-object v1
|
|
|
|
.line 89
|
|
const-string v10, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
.line 90
|
|
.line 91
|
|
if-nez v1, :cond_1f
|
|
|
|
.line 92
|
|
.line 93
|
|
const-string v1, "drawableRight"
|
|
|
|
.line 94
|
|
.line 95
|
|
invoke-interface {v2, v3, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result-object v1
|
|
|
|
.line 99
|
|
if-nez v1, :cond_1e
|
|
|
|
.line 100
|
|
.line 101
|
|
const-string v1, "singleLine"
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-interface {v2, v3, v1, v9}, Landroid/util/AttributeSet;->getAttributeBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-result v1
|
|
|
|
.line 107
|
|
if-eqz v1, :cond_1d
|
|
|
|
.line 108
|
|
.line 109
|
|
const-string v1, "lines"
|
|
|
|
.line 110
|
|
.line 111
|
|
invoke-interface {v2, v3, v1, v9}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
move-result v1
|
|
|
|
.line 115
|
|
if-ne v1, v9, :cond_1d
|
|
|
|
.line 116
|
|
.line 117
|
|
const-string v1, "minLines"
|
|
|
|
.line 118
|
|
.line 119
|
|
invoke-interface {v2, v3, v1, v9}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
move-result v1
|
|
|
|
.line 123
|
|
if-ne v1, v9, :cond_1d
|
|
|
|
.line 124
|
|
.line 125
|
|
const-string v1, "maxLines"
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-interface {v2, v3, v1, v9}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
move-result v1
|
|
|
|
.line 131
|
|
if-ne v1, v9, :cond_1d
|
|
|
|
.line 132
|
|
.line 133
|
|
const-string v1, "gravity"
|
|
|
|
.line 134
|
|
.line 135
|
|
invoke-interface {v2, v3, v1, v8}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
move-result v1
|
|
|
|
.line 139
|
|
if-eq v1, v8, :cond_2
|
|
|
|
.line 140
|
|
.line 141
|
|
const-string v1, "Chip text must be vertically center and start aligned"
|
|
|
|
.line 142
|
|
.line 143
|
|
invoke-static {v6, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 144
|
|
.line 145
|
|
.line 146
|
|
:cond_2
|
|
:goto_0
|
|
new-instance v10, Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 147
|
|
.line 148
|
|
invoke-direct {v10, v7, v2, v4}, Lcom/google/android/material/chip/ChipDrawable;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 149
|
|
.line 150
|
|
.line 151
|
|
sget-object v3, Lcom/google/android/material/R$styleable;->Chip:[I
|
|
|
|
.line 152
|
|
.line 153
|
|
const/4 v11, 0x0
|
|
|
|
.line 154
|
|
new-array v6, v11, [I
|
|
|
|
.line 155
|
|
.line 156
|
|
iget-object v1, v10, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 157
|
|
.line 158
|
|
invoke-static/range {v1 .. v6}, Lcom/google/android/material/internal/ThemeEnforcement;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 159
|
|
.line 160
|
|
.line 161
|
|
move-result-object v1
|
|
|
|
.line 162
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_shapeAppearance:I
|
|
|
|
.line 163
|
|
.line 164
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 165
|
|
.line 166
|
|
.line 167
|
|
move-result v3
|
|
|
|
.line 168
|
|
iput-boolean v3, v10, Lcom/google/android/material/chip/ChipDrawable;->S0:Z
|
|
|
|
.line 169
|
|
.line 170
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipSurfaceColor:I
|
|
|
|
.line 171
|
|
.line 172
|
|
iget-object v6, v10, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 173
|
|
.line 174
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 175
|
|
.line 176
|
|
.line 177
|
|
move-result-object v3
|
|
|
|
.line 178
|
|
iget-object v12, v10, Lcom/google/android/material/chip/ChipDrawable;->L:Landroid/content/res/ColorStateList;
|
|
|
|
.line 179
|
|
.line 180
|
|
if-eq v12, v3, :cond_3
|
|
|
|
.line 181
|
|
.line 182
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->L:Landroid/content/res/ColorStateList;
|
|
|
|
.line 183
|
|
.line 184
|
|
invoke-virtual {v10}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 185
|
|
.line 186
|
|
.line 187
|
|
move-result-object v3
|
|
|
|
.line 188
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
|
|
|
|
.line 189
|
|
.line 190
|
|
.line 191
|
|
:cond_3
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipBackgroundColor:I
|
|
|
|
.line 192
|
|
.line 193
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 194
|
|
.line 195
|
|
.line 196
|
|
move-result-object v3
|
|
|
|
.line 197
|
|
iget-object v12, v10, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 198
|
|
.line 199
|
|
if-eq v12, v3, :cond_4
|
|
|
|
.line 200
|
|
.line 201
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 202
|
|
.line 203
|
|
invoke-virtual {v10}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 204
|
|
.line 205
|
|
.line 206
|
|
move-result-object v3
|
|
|
|
.line 207
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
|
|
|
|
.line 208
|
|
.line 209
|
|
.line 210
|
|
:cond_4
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipMinHeight:I
|
|
|
|
.line 211
|
|
.line 212
|
|
const/4 v12, 0x0
|
|
|
|
.line 213
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 214
|
|
.line 215
|
|
.line 216
|
|
move-result v3
|
|
|
|
.line 217
|
|
iget v13, v10, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 218
|
|
.line 219
|
|
cmpl-float v13, v13, v3
|
|
|
|
.line 220
|
|
.line 221
|
|
if-eqz v13, :cond_5
|
|
|
|
.line 222
|
|
.line 223
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 224
|
|
.line 225
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 226
|
|
.line 227
|
|
.line 228
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 229
|
|
.line 230
|
|
.line 231
|
|
:cond_5
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipCornerRadius:I
|
|
|
|
.line 232
|
|
.line 233
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 234
|
|
.line 235
|
|
.line 236
|
|
move-result v3
|
|
|
|
.line 237
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 238
|
|
.line 239
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipCornerRadius:I
|
|
|
|
.line 240
|
|
.line 241
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 242
|
|
.line 243
|
|
.line 244
|
|
move-result v3
|
|
|
|
.line 245
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->J(F)V
|
|
|
|
.line 246
|
|
.line 247
|
|
.line 248
|
|
:cond_6
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipStrokeColor:I
|
|
|
|
.line 249
|
|
.line 250
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 251
|
|
.line 252
|
|
.line 253
|
|
move-result-object v3
|
|
|
|
.line 254
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->O(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 255
|
|
.line 256
|
|
.line 257
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipStrokeWidth:I
|
|
|
|
.line 258
|
|
.line 259
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 260
|
|
.line 261
|
|
.line 262
|
|
move-result v3
|
|
|
|
.line 263
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->P(F)V
|
|
|
|
.line 264
|
|
.line 265
|
|
.line 266
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_rippleColor:I
|
|
|
|
.line 267
|
|
.line 268
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 269
|
|
.line 270
|
|
.line 271
|
|
move-result-object v3
|
|
|
|
.line 272
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->Z(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 273
|
|
.line 274
|
|
.line 275
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_android_text:I
|
|
|
|
.line 276
|
|
.line 277
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;
|
|
|
|
.line 278
|
|
.line 279
|
|
.line 280
|
|
move-result-object v3
|
|
|
|
.line 281
|
|
if-nez v3, :cond_7
|
|
|
|
.line 282
|
|
.line 283
|
|
const-string v3, ""
|
|
|
|
.line 284
|
|
.line 285
|
|
:cond_7
|
|
iget-object v13, v10, Lcom/google/android/material/chip/ChipDrawable;->S:Ljava/lang/CharSequence;
|
|
|
|
.line 286
|
|
.line 287
|
|
invoke-static {v13, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
.line 288
|
|
.line 289
|
|
.line 290
|
|
move-result v13
|
|
|
|
.line 291
|
|
iget-object v14, v10, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
.line 292
|
|
.line 293
|
|
if-nez v13, :cond_8
|
|
|
|
.line 294
|
|
.line 295
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->S:Ljava/lang/CharSequence;
|
|
|
|
.line 296
|
|
.line 297
|
|
iput-boolean v9, v14, Lcom/google/android/material/internal/TextDrawableHelper;->e:Z
|
|
|
|
.line 298
|
|
.line 299
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 300
|
|
.line 301
|
|
.line 302
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 303
|
|
.line 304
|
|
.line 305
|
|
:cond_8
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_android_textAppearance:I
|
|
|
|
.line 306
|
|
.line 307
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 308
|
|
.line 309
|
|
.line 310
|
|
move-result v13
|
|
|
|
.line 311
|
|
if-eqz v13, :cond_9
|
|
|
|
.line 312
|
|
.line 313
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 314
|
|
.line 315
|
|
.line 316
|
|
move-result v3
|
|
|
|
.line 317
|
|
if-eqz v3, :cond_9
|
|
|
|
.line 318
|
|
.line 319
|
|
new-instance v13, Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
.line 320
|
|
.line 321
|
|
invoke-direct {v13, v6, v3}, Lcom/google/android/material/resources/TextAppearance;-><init>(Landroid/content/Context;I)V
|
|
|
|
.line 322
|
|
.line 323
|
|
.line 324
|
|
goto :goto_1
|
|
|
|
.line 325
|
|
:cond_9
|
|
const/4 v13, 0x0
|
|
|
|
.line 326
|
|
:goto_1
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_android_textSize:I
|
|
|
|
.line 327
|
|
.line 328
|
|
iget v15, v13, Lcom/google/android/material/resources/TextAppearance;->l:F
|
|
|
|
.line 329
|
|
.line 330
|
|
invoke-virtual {v1, v3, v15}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 331
|
|
.line 332
|
|
.line 333
|
|
move-result v3
|
|
|
|
.line 334
|
|
iput v3, v13, Lcom/google/android/material/resources/TextAppearance;->l:F
|
|
|
|
.line 335
|
|
.line 336
|
|
invoke-virtual {v14, v13, v6}, Lcom/google/android/material/internal/TextDrawableHelper;->c(Lcom/google/android/material/resources/TextAppearance;Landroid/content/Context;)V
|
|
|
|
.line 337
|
|
.line 338
|
|
.line 339
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_android_ellipsize:I
|
|
|
|
.line 340
|
|
.line 341
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 342
|
|
.line 343
|
|
.line 344
|
|
move-result v3
|
|
|
|
.line 345
|
|
if-eq v3, v9, :cond_c
|
|
|
|
.line 346
|
|
.line 347
|
|
const/4 v13, 0x2
|
|
|
|
.line 348
|
|
if-eq v3, v13, :cond_b
|
|
|
|
.line 349
|
|
.line 350
|
|
const/4 v13, 0x3
|
|
|
|
.line 351
|
|
if-eq v3, v13, :cond_a
|
|
|
|
.line 352
|
|
.line 353
|
|
goto :goto_2
|
|
|
|
.line 354
|
|
:cond_a
|
|
sget-object v3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 355
|
|
.line 356
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 357
|
|
.line 358
|
|
goto :goto_2
|
|
|
|
.line 359
|
|
:cond_b
|
|
sget-object v3, Landroid/text/TextUtils$TruncateAt;->MIDDLE:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 360
|
|
.line 361
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 362
|
|
.line 363
|
|
goto :goto_2
|
|
|
|
.line 364
|
|
:cond_c
|
|
sget-object v3, Landroid/text/TextUtils$TruncateAt;->START:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 365
|
|
.line 366
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 367
|
|
.line 368
|
|
:goto_2
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipIconVisible:I
|
|
|
|
.line 369
|
|
.line 370
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 371
|
|
.line 372
|
|
.line 373
|
|
move-result v3
|
|
|
|
.line 374
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->N(Z)V
|
|
|
|
.line 375
|
|
.line 376
|
|
.line 377
|
|
const-string v3, "http://schemas.android.com/apk/res-auto"
|
|
|
|
.line 378
|
|
.line 379
|
|
if-eqz v2, :cond_d
|
|
|
|
.line 380
|
|
.line 381
|
|
const-string v13, "chipIconEnabled"
|
|
|
|
.line 382
|
|
.line 383
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 384
|
|
.line 385
|
|
.line 386
|
|
move-result-object v13
|
|
|
|
.line 387
|
|
if-eqz v13, :cond_d
|
|
|
|
.line 388
|
|
.line 389
|
|
const-string v13, "chipIconVisible"
|
|
|
|
.line 390
|
|
.line 391
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 392
|
|
.line 393
|
|
.line 394
|
|
move-result-object v13
|
|
|
|
.line 395
|
|
if-nez v13, :cond_d
|
|
|
|
.line 396
|
|
.line 397
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_chipIconEnabled:I
|
|
|
|
.line 398
|
|
.line 399
|
|
invoke-virtual {v1, v13, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 400
|
|
.line 401
|
|
.line 402
|
|
move-result v13
|
|
|
|
.line 403
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->N(Z)V
|
|
|
|
.line 404
|
|
.line 405
|
|
.line 406
|
|
:cond_d
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_chipIcon:I
|
|
|
|
.line 407
|
|
.line 408
|
|
invoke-static {v6, v1, v13}, Lcom/google/android/material/resources/MaterialResources;->c(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 409
|
|
.line 410
|
|
.line 411
|
|
move-result-object v13
|
|
|
|
.line 412
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->K(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 413
|
|
.line 414
|
|
.line 415
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_chipIconTint:I
|
|
|
|
.line 416
|
|
.line 417
|
|
invoke-virtual {v1, v13}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 418
|
|
.line 419
|
|
.line 420
|
|
move-result v13
|
|
|
|
.line 421
|
|
if-eqz v13, :cond_e
|
|
|
|
.line 422
|
|
.line 423
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_chipIconTint:I
|
|
|
|
.line 424
|
|
.line 425
|
|
invoke-static {v6, v1, v13}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 426
|
|
.line 427
|
|
.line 428
|
|
move-result-object v13
|
|
|
|
.line 429
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->M(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 430
|
|
.line 431
|
|
.line 432
|
|
:cond_e
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_chipIconSize:I
|
|
|
|
.line 433
|
|
.line 434
|
|
const/high16 v14, -0x40800000 # -1.0f
|
|
|
|
.line 435
|
|
.line 436
|
|
invoke-virtual {v1, v13, v14}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 437
|
|
.line 438
|
|
.line 439
|
|
move-result v13
|
|
|
|
.line 440
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->L(F)V
|
|
|
|
.line 441
|
|
.line 442
|
|
.line 443
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_closeIconVisible:I
|
|
|
|
.line 444
|
|
.line 445
|
|
invoke-virtual {v1, v13, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 446
|
|
.line 447
|
|
.line 448
|
|
move-result v13
|
|
|
|
.line 449
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->W(Z)V
|
|
|
|
.line 450
|
|
.line 451
|
|
.line 452
|
|
if-eqz v2, :cond_f
|
|
|
|
.line 453
|
|
.line 454
|
|
const-string v13, "closeIconEnabled"
|
|
|
|
.line 455
|
|
.line 456
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 457
|
|
.line 458
|
|
.line 459
|
|
move-result-object v13
|
|
|
|
.line 460
|
|
if-eqz v13, :cond_f
|
|
|
|
.line 461
|
|
.line 462
|
|
const-string v13, "closeIconVisible"
|
|
|
|
.line 463
|
|
.line 464
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 465
|
|
.line 466
|
|
.line 467
|
|
move-result-object v13
|
|
|
|
.line 468
|
|
if-nez v13, :cond_f
|
|
|
|
.line 469
|
|
.line 470
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_closeIconEnabled:I
|
|
|
|
.line 471
|
|
.line 472
|
|
invoke-virtual {v1, v13, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 473
|
|
.line 474
|
|
.line 475
|
|
move-result v13
|
|
|
|
.line 476
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->W(Z)V
|
|
|
|
.line 477
|
|
.line 478
|
|
.line 479
|
|
:cond_f
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_closeIcon:I
|
|
|
|
.line 480
|
|
.line 481
|
|
invoke-static {v6, v1, v13}, Lcom/google/android/material/resources/MaterialResources;->c(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 482
|
|
.line 483
|
|
.line 484
|
|
move-result-object v13
|
|
|
|
.line 485
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->Q(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 486
|
|
.line 487
|
|
.line 488
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_closeIconTint:I
|
|
|
|
.line 489
|
|
.line 490
|
|
invoke-static {v6, v1, v13}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 491
|
|
.line 492
|
|
.line 493
|
|
move-result-object v13
|
|
|
|
.line 494
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->V(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 495
|
|
.line 496
|
|
.line 497
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_closeIconSize:I
|
|
|
|
.line 498
|
|
.line 499
|
|
invoke-virtual {v1, v13, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 500
|
|
.line 501
|
|
.line 502
|
|
move-result v13
|
|
|
|
.line 503
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->S(F)V
|
|
|
|
.line 504
|
|
.line 505
|
|
.line 506
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_android_checkable:I
|
|
|
|
.line 507
|
|
.line 508
|
|
invoke-virtual {v1, v13, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 509
|
|
.line 510
|
|
.line 511
|
|
move-result v13
|
|
|
|
.line 512
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->F(Z)V
|
|
|
|
.line 513
|
|
.line 514
|
|
.line 515
|
|
sget v13, Lcom/google/android/material/R$styleable;->Chip_checkedIconVisible:I
|
|
|
|
.line 516
|
|
.line 517
|
|
invoke-virtual {v1, v13, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 518
|
|
.line 519
|
|
.line 520
|
|
move-result v13
|
|
|
|
.line 521
|
|
invoke-virtual {v10, v13}, Lcom/google/android/material/chip/ChipDrawable;->I(Z)V
|
|
|
|
.line 522
|
|
.line 523
|
|
.line 524
|
|
if-eqz v2, :cond_10
|
|
|
|
.line 525
|
|
.line 526
|
|
const-string v13, "checkedIconEnabled"
|
|
|
|
.line 527
|
|
.line 528
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 529
|
|
.line 530
|
|
.line 531
|
|
move-result-object v13
|
|
|
|
.line 532
|
|
if-eqz v13, :cond_10
|
|
|
|
.line 533
|
|
.line 534
|
|
const-string v13, "checkedIconVisible"
|
|
|
|
.line 535
|
|
.line 536
|
|
invoke-interface {v2, v3, v13}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 537
|
|
.line 538
|
|
.line 539
|
|
move-result-object v3
|
|
|
|
.line 540
|
|
if-nez v3, :cond_10
|
|
|
|
.line 541
|
|
.line 542
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_checkedIconEnabled:I
|
|
|
|
.line 543
|
|
.line 544
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 545
|
|
.line 546
|
|
.line 547
|
|
move-result v3
|
|
|
|
.line 548
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->I(Z)V
|
|
|
|
.line 549
|
|
.line 550
|
|
.line 551
|
|
:cond_10
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_checkedIcon:I
|
|
|
|
.line 552
|
|
.line 553
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->c(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 554
|
|
.line 555
|
|
.line 556
|
|
move-result-object v3
|
|
|
|
.line 557
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->G(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 558
|
|
.line 559
|
|
.line 560
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_checkedIconTint:I
|
|
|
|
.line 561
|
|
.line 562
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 563
|
|
.line 564
|
|
.line 565
|
|
move-result v3
|
|
|
|
.line 566
|
|
if-eqz v3, :cond_11
|
|
|
|
.line 567
|
|
.line 568
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_checkedIconTint:I
|
|
|
|
.line 569
|
|
.line 570
|
|
invoke-static {v6, v1, v3}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 571
|
|
.line 572
|
|
.line 573
|
|
move-result-object v3
|
|
|
|
.line 574
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->H(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 575
|
|
.line 576
|
|
.line 577
|
|
:cond_11
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_showMotionSpec:I
|
|
|
|
.line 578
|
|
.line 579
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 580
|
|
.line 581
|
|
.line 582
|
|
move-result v13
|
|
|
|
.line 583
|
|
if-eqz v13, :cond_12
|
|
|
|
.line 584
|
|
.line 585
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 586
|
|
.line 587
|
|
.line 588
|
|
move-result v3
|
|
|
|
.line 589
|
|
if-eqz v3, :cond_12
|
|
|
|
.line 590
|
|
.line 591
|
|
invoke-static {v6, v3}, Lcom/google/android/material/animation/MotionSpec;->a(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 592
|
|
.line 593
|
|
.line 594
|
|
move-result-object v3
|
|
|
|
.line 595
|
|
goto :goto_3
|
|
|
|
.line 596
|
|
:cond_12
|
|
const/4 v3, 0x0
|
|
|
|
.line 597
|
|
:goto_3
|
|
iput-object v3, v10, Lcom/google/android/material/chip/ChipDrawable;->i0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 598
|
|
.line 599
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_hideMotionSpec:I
|
|
|
|
.line 600
|
|
.line 601
|
|
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 602
|
|
.line 603
|
|
.line 604
|
|
move-result v13
|
|
|
|
.line 605
|
|
if-eqz v13, :cond_13
|
|
|
|
.line 606
|
|
.line 607
|
|
invoke-virtual {v1, v3, v11}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 608
|
|
.line 609
|
|
.line 610
|
|
move-result v3
|
|
|
|
.line 611
|
|
if-eqz v3, :cond_13
|
|
|
|
.line 612
|
|
.line 613
|
|
invoke-static {v6, v3}, Lcom/google/android/material/animation/MotionSpec;->a(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 614
|
|
.line 615
|
|
.line 616
|
|
move-result-object v15
|
|
|
|
.line 617
|
|
goto :goto_4
|
|
|
|
.line 618
|
|
:cond_13
|
|
const/4 v15, 0x0
|
|
|
|
.line 619
|
|
:goto_4
|
|
iput-object v15, v10, Lcom/google/android/material/chip/ChipDrawable;->j0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 620
|
|
.line 621
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipStartPadding:I
|
|
|
|
.line 622
|
|
.line 623
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 624
|
|
.line 625
|
|
.line 626
|
|
move-result v3
|
|
|
|
.line 627
|
|
iget v6, v10, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 628
|
|
.line 629
|
|
cmpl-float v6, v6, v3
|
|
|
|
.line 630
|
|
.line 631
|
|
if-eqz v6, :cond_14
|
|
|
|
.line 632
|
|
.line 633
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 634
|
|
.line 635
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 636
|
|
.line 637
|
|
.line 638
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 639
|
|
.line 640
|
|
.line 641
|
|
:cond_14
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_iconStartPadding:I
|
|
|
|
.line 642
|
|
.line 643
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 644
|
|
.line 645
|
|
.line 646
|
|
move-result v3
|
|
|
|
.line 647
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->Y(F)V
|
|
|
|
.line 648
|
|
.line 649
|
|
.line 650
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_iconEndPadding:I
|
|
|
|
.line 651
|
|
.line 652
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 653
|
|
.line 654
|
|
.line 655
|
|
move-result v3
|
|
|
|
.line 656
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->X(F)V
|
|
|
|
.line 657
|
|
.line 658
|
|
.line 659
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_textStartPadding:I
|
|
|
|
.line 660
|
|
.line 661
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 662
|
|
.line 663
|
|
.line 664
|
|
move-result v3
|
|
|
|
.line 665
|
|
iget v6, v10, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 666
|
|
.line 667
|
|
cmpl-float v6, v6, v3
|
|
|
|
.line 668
|
|
.line 669
|
|
if-eqz v6, :cond_15
|
|
|
|
.line 670
|
|
.line 671
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 672
|
|
.line 673
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 674
|
|
.line 675
|
|
.line 676
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 677
|
|
.line 678
|
|
.line 679
|
|
:cond_15
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_textEndPadding:I
|
|
|
|
.line 680
|
|
.line 681
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 682
|
|
.line 683
|
|
.line 684
|
|
move-result v3
|
|
|
|
.line 685
|
|
iget v6, v10, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 686
|
|
.line 687
|
|
cmpl-float v6, v6, v3
|
|
|
|
.line 688
|
|
.line 689
|
|
if-eqz v6, :cond_16
|
|
|
|
.line 690
|
|
.line 691
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 692
|
|
.line 693
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 694
|
|
.line 695
|
|
.line 696
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 697
|
|
.line 698
|
|
.line 699
|
|
:cond_16
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_closeIconStartPadding:I
|
|
|
|
.line 700
|
|
.line 701
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 702
|
|
.line 703
|
|
.line 704
|
|
move-result v3
|
|
|
|
.line 705
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->T(F)V
|
|
|
|
.line 706
|
|
.line 707
|
|
.line 708
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_closeIconEndPadding:I
|
|
|
|
.line 709
|
|
.line 710
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 711
|
|
.line 712
|
|
.line 713
|
|
move-result v3
|
|
|
|
.line 714
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/chip/ChipDrawable;->R(F)V
|
|
|
|
.line 715
|
|
.line 716
|
|
.line 717
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_chipEndPadding:I
|
|
|
|
.line 718
|
|
.line 719
|
|
invoke-virtual {v1, v3, v12}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 720
|
|
.line 721
|
|
.line 722
|
|
move-result v3
|
|
|
|
.line 723
|
|
iget v6, v10, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 724
|
|
.line 725
|
|
cmpl-float v6, v6, v3
|
|
|
|
.line 726
|
|
.line 727
|
|
if-eqz v6, :cond_17
|
|
|
|
.line 728
|
|
.line 729
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 730
|
|
.line 731
|
|
invoke-virtual {v10}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 732
|
|
.line 733
|
|
.line 734
|
|
invoke-virtual {v10}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 735
|
|
.line 736
|
|
.line 737
|
|
:cond_17
|
|
sget v3, Lcom/google/android/material/R$styleable;->Chip_android_maxWidth:I
|
|
|
|
.line 738
|
|
.line 739
|
|
const v6, 0x7fffffff
|
|
|
|
.line 740
|
|
.line 741
|
|
.line 742
|
|
invoke-virtual {v1, v3, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 743
|
|
.line 744
|
|
.line 745
|
|
move-result v3
|
|
|
|
.line 746
|
|
iput v3, v10, Lcom/google/android/material/chip/ChipDrawable;->R0:I
|
|
|
|
.line 747
|
|
.line 748
|
|
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 749
|
|
.line 750
|
|
.line 751
|
|
sget-object v3, Lcom/google/android/material/R$styleable;->Chip:[I
|
|
|
|
.line 752
|
|
.line 753
|
|
new-array v6, v11, [I
|
|
|
|
.line 754
|
|
.line 755
|
|
invoke-static {v7, v2, v4, v5}, Lcom/google/android/material/internal/ThemeEnforcement;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 756
|
|
.line 757
|
|
.line 758
|
|
move-object v1, v7
|
|
|
|
.line 759
|
|
invoke-static/range {v1 .. v6}, Lcom/google/android/material/internal/ThemeEnforcement;->b(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)V
|
|
|
|
.line 760
|
|
.line 761
|
|
.line 762
|
|
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 763
|
|
.line 764
|
|
.line 765
|
|
move-result-object v3
|
|
|
|
.line 766
|
|
sget v6, Lcom/google/android/material/R$styleable;->Chip_ensureMinTouchTargetSize:I
|
|
|
|
.line 767
|
|
.line 768
|
|
invoke-virtual {v3, v6, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 769
|
|
.line 770
|
|
.line 771
|
|
move-result v6
|
|
|
|
.line 772
|
|
iput-boolean v6, v0, Lcom/google/android/material/chip/Chip;->s:Z
|
|
|
|
.line 773
|
|
.line 774
|
|
sget v6, Lcom/google/android/material/R$attr;->minTouchTargetSize:I
|
|
|
|
.line 775
|
|
.line 776
|
|
sget v7, Lcom/google/android/material/R$dimen;->mtrl_min_touch_target_size:I
|
|
|
|
.line 777
|
|
.line 778
|
|
invoke-static {v1, v6}, Lcom/google/android/material/resources/MaterialAttributes;->a(Landroid/content/Context;I)Landroid/util/TypedValue;
|
|
|
|
.line 779
|
|
.line 780
|
|
.line 781
|
|
move-result-object v6
|
|
|
|
.line 782
|
|
if-eqz v6, :cond_19
|
|
|
|
.line 783
|
|
.line 784
|
|
iget v12, v6, Landroid/util/TypedValue;->type:I
|
|
|
|
.line 785
|
|
.line 786
|
|
const/4 v13, 0x5
|
|
|
|
.line 787
|
|
if-eq v12, v13, :cond_18
|
|
|
|
.line 788
|
|
.line 789
|
|
goto :goto_6
|
|
|
|
.line 790
|
|
:cond_18
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 791
|
|
.line 792
|
|
.line 793
|
|
move-result-object v7
|
|
|
|
.line 794
|
|
invoke-virtual {v7}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 795
|
|
.line 796
|
|
.line 797
|
|
move-result-object v7
|
|
|
|
.line 798
|
|
invoke-virtual {v6, v7}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
|
|
|
|
.line 799
|
|
.line 800
|
|
.line 801
|
|
move-result v6
|
|
|
|
.line 802
|
|
:goto_5
|
|
float-to-int v6, v6
|
|
|
|
.line 803
|
|
goto :goto_7
|
|
|
|
.line 804
|
|
:cond_19
|
|
:goto_6
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 805
|
|
.line 806
|
|
.line 807
|
|
move-result-object v6
|
|
|
|
.line 808
|
|
invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 809
|
|
.line 810
|
|
.line 811
|
|
move-result v6
|
|
|
|
.line 812
|
|
goto :goto_5
|
|
|
|
.line 813
|
|
:goto_7
|
|
int-to-float v6, v6
|
|
|
|
.line 814
|
|
sget v7, Lcom/google/android/material/R$styleable;->Chip_chipMinTouchTargetSize:I
|
|
|
|
.line 815
|
|
.line 816
|
|
invoke-virtual {v3, v7, v6}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
.line 817
|
|
.line 818
|
|
.line 819
|
|
move-result v6
|
|
|
|
.line 820
|
|
float-to-double v6, v6
|
|
|
|
.line 821
|
|
invoke-static {v6, v7}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
.line 822
|
|
.line 823
|
|
.line 824
|
|
move-result-wide v6
|
|
|
|
.line 825
|
|
double-to-int v6, v6
|
|
|
|
.line 826
|
|
iput v6, v0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 827
|
|
.line 828
|
|
invoke-virtual {v3}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 829
|
|
.line 830
|
|
.line 831
|
|
invoke-virtual {v0, v10}, Lcom/google/android/material/chip/Chip;->setChipDrawable(Lcom/google/android/material/chip/ChipDrawable;)V
|
|
|
|
.line 832
|
|
.line 833
|
|
.line 834
|
|
invoke-virtual {v0}, Landroid/view/View;->getElevation()F
|
|
|
|
.line 835
|
|
.line 836
|
|
.line 837
|
|
move-result v3
|
|
|
|
.line 838
|
|
invoke-virtual {v10, v3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->n(F)V
|
|
|
|
.line 839
|
|
.line 840
|
|
.line 841
|
|
sget-object v3, Lcom/google/android/material/R$styleable;->Chip:[I
|
|
|
|
.line 842
|
|
.line 843
|
|
new-array v6, v11, [I
|
|
|
|
.line 844
|
|
.line 845
|
|
invoke-static {v1, v2, v4, v5}, Lcom/google/android/material/internal/ThemeEnforcement;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 846
|
|
.line 847
|
|
.line 848
|
|
invoke-static/range {v1 .. v6}, Lcom/google/android/material/internal/ThemeEnforcement;->b(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)V
|
|
|
|
.line 849
|
|
.line 850
|
|
.line 851
|
|
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 852
|
|
.line 853
|
|
.line 854
|
|
move-result-object v1
|
|
|
|
.line 855
|
|
sget v2, Lcom/google/android/material/R$styleable;->Chip_shapeAppearance:I
|
|
|
|
.line 856
|
|
.line 857
|
|
invoke-virtual {v1, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 858
|
|
.line 859
|
|
.line 860
|
|
move-result v2
|
|
|
|
.line 861
|
|
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 862
|
|
.line 863
|
|
.line 864
|
|
new-instance v1, Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 865
|
|
.line 866
|
|
invoke-direct {v1, v0, v0}, Lcom/google/android/material/chip/Chip$ChipTouchHelper;-><init>(Lcom/google/android/material/chip/Chip;Lcom/google/android/material/chip/Chip;)V
|
|
|
|
.line 867
|
|
.line 868
|
|
.line 869
|
|
iput-object v1, v0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 870
|
|
.line 871
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/Chip;->f()V
|
|
|
|
.line 872
|
|
.line 873
|
|
.line 874
|
|
if-nez v2, :cond_1a
|
|
|
|
.line 875
|
|
.line 876
|
|
new-instance v1, Lcom/google/android/material/chip/Chip$2;
|
|
|
|
.line 877
|
|
.line 878
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/chip/Chip$2;-><init>(Lcom/google/android/material/chip/Chip;)V
|
|
|
|
.line 879
|
|
.line 880
|
|
.line 881
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOutlineProvider(Landroid/view/ViewOutlineProvider;)V
|
|
|
|
.line 882
|
|
.line 883
|
|
.line 884
|
|
:cond_1a
|
|
iget-boolean v1, v0, Lcom/google/android/material/chip/Chip;->o:Z
|
|
|
|
.line 885
|
|
.line 886
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
.line 887
|
|
.line 888
|
|
.line 889
|
|
iget-object v1, v10, Lcom/google/android/material/chip/ChipDrawable;->S:Ljava/lang/CharSequence;
|
|
|
|
.line 890
|
|
.line 891
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 892
|
|
.line 893
|
|
.line 894
|
|
iget-object v1, v10, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 895
|
|
.line 896
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/chip/Chip;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
|
|
|
|
.line 897
|
|
.line 898
|
|
.line 899
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/Chip;->i()V
|
|
|
|
.line 900
|
|
.line 901
|
|
.line 902
|
|
iget-object v1, v0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 903
|
|
.line 904
|
|
iget-boolean v1, v1, Lcom/google/android/material/chip/ChipDrawable;->Q0:Z
|
|
|
|
.line 905
|
|
.line 906
|
|
if-nez v1, :cond_1b
|
|
|
|
.line 907
|
|
.line 908
|
|
invoke-virtual {v0, v9}, Lcom/google/android/material/chip/Chip;->setLines(I)V
|
|
|
|
.line 909
|
|
.line 910
|
|
.line 911
|
|
invoke-virtual {v0, v9}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V
|
|
|
|
.line 912
|
|
.line 913
|
|
.line 914
|
|
:cond_1b
|
|
invoke-virtual {v0, v8}, Lcom/google/android/material/chip/Chip;->setGravity(I)V
|
|
|
|
.line 915
|
|
.line 916
|
|
.line 917
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/Chip;->h()V
|
|
|
|
.line 918
|
|
.line 919
|
|
.line 920
|
|
iget-boolean v1, v0, Lcom/google/android/material/chip/Chip;->s:Z
|
|
|
|
.line 921
|
|
.line 922
|
|
if-eqz v1, :cond_1c
|
|
|
|
.line 923
|
|
.line 924
|
|
iget v1, v0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 925
|
|
.line 926
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMinHeight(I)V
|
|
|
|
.line 927
|
|
.line 928
|
|
.line 929
|
|
:cond_1c
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 930
|
|
.line 931
|
|
.line 932
|
|
move-result v1
|
|
|
|
.line 933
|
|
iput v1, v0, Lcom/google/android/material/chip/Chip;->t:I
|
|
|
|
.line 934
|
|
.line 935
|
|
new-instance v1, Lcom/google/android/material/chip/a;
|
|
|
|
.line 936
|
|
.line 937
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/chip/a;-><init>(Lcom/google/android/material/chip/Chip;)V
|
|
|
|
.line 938
|
|
.line 939
|
|
.line 940
|
|
invoke-super {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
|
|
|
|
.line 941
|
|
.line 942
|
|
.line 943
|
|
return-void
|
|
|
|
.line 944
|
|
:cond_1d
|
|
new-instance v1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 945
|
|
.line 946
|
|
const-string v2, "Chip does not support multi-line text"
|
|
|
|
.line 947
|
|
.line 948
|
|
invoke-direct {v1, v2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 949
|
|
.line 950
|
|
.line 951
|
|
throw v1
|
|
|
|
.line 952
|
|
:cond_1e
|
|
new-instance v1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 953
|
|
.line 954
|
|
invoke-direct {v1, v10}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 955
|
|
.line 956
|
|
.line 957
|
|
throw v1
|
|
|
|
.line 958
|
|
:cond_1f
|
|
new-instance v1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 959
|
|
.line 960
|
|
invoke-direct {v1, v10}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 961
|
|
.line 962
|
|
.line 963
|
|
throw v1
|
|
|
|
.line 964
|
|
:cond_20
|
|
new-instance v1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 965
|
|
.line 966
|
|
const-string v2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
.line 967
|
|
.line 968
|
|
invoke-direct {v1, v2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 969
|
|
.line 970
|
|
.line 971
|
|
throw v1
|
|
|
|
.line 972
|
|
:cond_21
|
|
new-instance v1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 973
|
|
.line 974
|
|
const-string v2, "Please set left drawable using R.attr#chipIcon."
|
|
|
|
.line 975
|
|
.line 976
|
|
invoke-direct {v1, v2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 977
|
|
.line 978
|
|
.line 979
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static synthetic b(Lcom/google/android/material/chip/Chip;)Landroid/graphics/RectF;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic c(Lcom/google/android/material/chip/Chip;)Landroid/graphics/Rect;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBoundsInt()Landroid/graphics/Rect;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->z:Landroid/graphics/RectF;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->setEmpty()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->e()Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v1
|
|
|
|
.line 10
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->l:Landroid/view/View$OnClickListener;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v2
|
|
|
|
.line 22
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->setEmpty()V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v1}, Lcom/google/android/material/chip/ChipDrawable;->c0()Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v3
|
|
|
|
.line 29
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 30
|
|
.line 31
|
|
iget v3, v1, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 32
|
|
.line 33
|
|
iget v4, v1, Lcom/google/android/material/chip/ChipDrawable;->q0:F
|
|
|
|
.line 34
|
|
.line 35
|
|
add-float/2addr v3, v4
|
|
|
|
.line 36
|
|
iget v4, v1, Lcom/google/android/material/chip/ChipDrawable;->c0:F
|
|
|
|
.line 37
|
|
.line 38
|
|
add-float/2addr v3, v4
|
|
|
|
.line 39
|
|
iget v4, v1, Lcom/google/android/material/chip/ChipDrawable;->p0:F
|
|
|
|
.line 40
|
|
.line 41
|
|
add-float/2addr v3, v4
|
|
|
|
.line 42
|
|
iget v4, v1, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 43
|
|
.line 44
|
|
add-float/2addr v3, v4
|
|
|
|
.line 45
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getLayoutDirection()I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v1
|
|
|
|
.line 49
|
|
if-nez v1, :cond_0
|
|
|
|
.line 50
|
|
.line 51
|
|
iget v1, v2, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 52
|
|
.line 53
|
|
int-to-float v1, v1
|
|
|
|
.line 54
|
|
iput v1, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
.line 55
|
|
.line 56
|
|
sub-float/2addr v1, v3
|
|
|
|
.line 57
|
|
iput v1, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
.line 58
|
|
.line 59
|
|
goto :goto_0
|
|
|
|
.line 60
|
|
:cond_0
|
|
iget v1, v2, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 61
|
|
.line 62
|
|
int-to-float v1, v1
|
|
|
|
.line 63
|
|
iput v1, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
.line 64
|
|
.line 65
|
|
add-float/2addr v1, v3
|
|
|
|
.line 66
|
|
iput v1, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
.line 67
|
|
.line 68
|
|
:goto_0
|
|
iget v1, v2, Landroid/graphics/Rect;->top:I
|
|
|
|
.line 69
|
|
.line 70
|
|
int-to-float v1, v1
|
|
|
|
.line 71
|
|
iput v1, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
.line 72
|
|
.line 73
|
|
iget v1, v2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 74
|
|
.line 75
|
|
int-to-float v1, v1
|
|
|
|
.line 76
|
|
iput v1, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
.line 77
|
|
.line 78
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getCloseIconTouchBoundsInt()Landroid/graphics/Rect;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
iget v1, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
.line 6
|
|
.line 7
|
|
float-to-int v1, v1
|
|
|
|
.line 8
|
|
iget v2, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
.line 9
|
|
.line 10
|
|
float-to-int v2, v2
|
|
|
|
.line 11
|
|
iget v3, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
.line 12
|
|
.line 13
|
|
float-to-int v3, v3
|
|
|
|
.line 14
|
|
iget v0, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
.line 15
|
|
.line 16
|
|
float-to-int v0, v0
|
|
|
|
.line 17
|
|
iget-object v4, p0, Lcom/google/android/material/chip/Chip;->y:Landroid/graphics/Rect;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v4, v1, v2, v3, v0}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-object v4
|
|
.end method
|
|
|
|
.method private getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, v0, Lcom/google/android/material/internal/TextDrawableHelper;->g:Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
.line 8
|
|
.line 9
|
|
return-object v0
|
|
|
|
.line 10
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private setCloseIconHovered(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->q:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/Chip;->q:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->refreshDrawableState()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private setCloseIconPressed(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->refreshDrawableState()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/chip/Chip;->d(I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidateOutline()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(I)V
|
|
.locals 10
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->s:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
if-nez v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object p1, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 14
|
|
.line 15
|
|
iput-object v1, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p0, v2}, Landroid/widget/TextView;->setMinWidth(I)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getChipMinHeight()F
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result p1
|
|
|
|
.line 24
|
|
float-to-int p1, p1
|
|
|
|
.line 25
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setMinHeight(I)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
return-void
|
|
|
|
.line 32
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return-void
|
|
|
|
.line 36
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 37
|
|
.line 38
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 39
|
|
.line 40
|
|
float-to-int v0, v0
|
|
|
|
.line 41
|
|
sub-int v0, p1, v0
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result v0
|
|
|
|
.line 47
|
|
iget-object v3, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {v3}, Lcom/google/android/material/chip/ChipDrawable;->getIntrinsicWidth()I
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v3
|
|
|
|
.line 53
|
|
sub-int v3, p1, v3
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result v3
|
|
|
|
.line 59
|
|
if-gtz v3, :cond_4
|
|
|
|
.line 60
|
|
.line 61
|
|
if-gtz v0, :cond_4
|
|
|
|
.line 62
|
|
.line 63
|
|
iget-object p1, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 64
|
|
.line 65
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 66
|
|
.line 67
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 68
|
|
.line 69
|
|
iput-object v1, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p0, v2}, Landroid/widget/TextView;->setMinWidth(I)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getChipMinHeight()F
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result p1
|
|
|
|
.line 78
|
|
float-to-int p1, p1
|
|
|
|
.line 79
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setMinHeight(I)V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 86
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
return-void
|
|
|
|
.line 90
|
|
:cond_4
|
|
if-lez v3, :cond_5
|
|
|
|
.line 91
|
|
.line 92
|
|
div-int/lit8 v3, v3, 0x2
|
|
|
|
.line 93
|
|
.line 94
|
|
move v6, v3
|
|
|
|
.line 95
|
|
goto :goto_0
|
|
|
|
.line 96
|
|
:cond_5
|
|
move v6, v2
|
|
|
|
.line 97
|
|
:goto_0
|
|
if-lez v0, :cond_6
|
|
|
|
.line 98
|
|
.line 99
|
|
div-int/lit8 v2, v0, 0x2
|
|
|
|
.line 100
|
|
.line 101
|
|
:cond_6
|
|
move v7, v2
|
|
|
|
.line 102
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 103
|
|
.line 104
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 105
|
|
.line 106
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
.line 107
|
|
.line 108
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/InsetDrawable;->getPadding(Landroid/graphics/Rect;)Z
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
iget v1, v0, Landroid/graphics/Rect;->top:I
|
|
|
|
.line 117
|
|
.line 118
|
|
if-ne v1, v7, :cond_7
|
|
|
|
.line 119
|
|
.line 120
|
|
iget v1, v0, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 121
|
|
.line 122
|
|
if-ne v1, v7, :cond_7
|
|
|
|
.line 123
|
|
.line 124
|
|
iget v1, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 125
|
|
.line 126
|
|
if-ne v1, v6, :cond_7
|
|
|
|
.line 127
|
|
.line 128
|
|
iget v0, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 129
|
|
.line 130
|
|
if-ne v0, v6, :cond_7
|
|
|
|
.line 131
|
|
.line 132
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 133
|
|
.line 134
|
|
.line 135
|
|
return-void
|
|
|
|
.line 136
|
|
:cond_7
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getMinHeight()I
|
|
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
move-result v0
|
|
|
|
.line 140
|
|
if-eq v0, p1, :cond_8
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setMinHeight(I)V
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
:cond_8
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getMinWidth()I
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
move-result v0
|
|
|
|
.line 149
|
|
if-eq v0, p1, :cond_9
|
|
|
|
.line 150
|
|
.line 151
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setMinWidth(I)V
|
|
|
|
.line 152
|
|
.line 153
|
|
.line 154
|
|
:cond_9
|
|
new-instance v4, Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 155
|
|
.line 156
|
|
iget-object v5, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 157
|
|
.line 158
|
|
move v8, v6
|
|
|
|
.line 159
|
|
move v9, v7
|
|
|
|
.line 160
|
|
invoke-direct/range {v4 .. v9}, Landroid/graphics/drawable/InsetDrawable;-><init>(Landroid/graphics/drawable/Drawable;IIII)V
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
iput-object v4, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 164
|
|
.line 165
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 166
|
|
.line 167
|
|
.line 168
|
|
return-void
|
|
.end method
|
|
|
|
.method public final dispatchHoverEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->dispatchHoverEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
return p1
|
|
|
|
.line 10
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->h:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v1}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v2
|
|
|
|
.line 18
|
|
const/4 v3, 0x0
|
|
|
|
.line 19
|
|
const/4 v4, 0x1
|
|
|
|
.line 20
|
|
if-eqz v2, :cond_7
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v1}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v1
|
|
|
|
.line 26
|
|
if-nez v1, :cond_1
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v1
|
|
|
|
.line 33
|
|
const/4 v2, 0x7
|
|
|
|
.line 34
|
|
const/16 v5, 0x100
|
|
|
|
.line 35
|
|
.line 36
|
|
const/16 v6, 0x80
|
|
|
|
.line 37
|
|
.line 38
|
|
const/high16 v7, -0x80000000
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eq v1, v2, :cond_4
|
|
|
|
.line 41
|
|
.line 42
|
|
const/16 v2, 0x9
|
|
|
|
.line 43
|
|
.line 44
|
|
if-eq v1, v2, :cond_4
|
|
|
|
.line 45
|
|
.line 46
|
|
const/16 v2, 0xa
|
|
|
|
.line 47
|
|
.line 48
|
|
if-eq v1, v2, :cond_2
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_2
|
|
iget v1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->m:I
|
|
|
|
.line 52
|
|
.line 53
|
|
if-eq v1, v7, :cond_7
|
|
|
|
.line 54
|
|
.line 55
|
|
if-ne v1, v7, :cond_3
|
|
|
|
.line 56
|
|
.line 57
|
|
goto :goto_1
|
|
|
|
.line 58
|
|
:cond_3
|
|
iput v7, v0, Landroidx/customview/widget/ExploreByTouchHelper;->m:I
|
|
|
|
.line 59
|
|
.line 60
|
|
invoke-virtual {v0, v7, v6}, Landroidx/customview/widget/ExploreByTouchHelper;->t(II)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {v0, v1, v5}, Landroidx/customview/widget/ExploreByTouchHelper;->t(II)V
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
goto :goto_1
|
|
|
|
.line 67
|
|
:cond_4
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result v1
|
|
|
|
.line 71
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result p1
|
|
|
|
.line 75
|
|
iget-object v2, v0, Lcom/google/android/material/chip/Chip$ChipTouchHelper;->q:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v2}, Lcom/google/android/material/chip/Chip;->e()Z
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result v7
|
|
|
|
.line 81
|
|
if-eqz v7, :cond_5
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-static {v2}, Lcom/google/android/material/chip/Chip;->b(Lcom/google/android/material/chip/Chip;)Landroid/graphics/RectF;
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
move-result-object v2
|
|
|
|
.line 87
|
|
invoke-virtual {v2, v1, p1}, Landroid/graphics/RectF;->contains(FF)Z
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result p1
|
|
|
|
.line 91
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 92
|
|
.line 93
|
|
move v3, v4
|
|
|
|
.line 94
|
|
:cond_5
|
|
iget p1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->m:I
|
|
|
|
.line 95
|
|
.line 96
|
|
if-ne p1, v3, :cond_6
|
|
|
|
.line 97
|
|
.line 98
|
|
goto :goto_1
|
|
|
|
.line 99
|
|
:cond_6
|
|
iput v3, v0, Landroidx/customview/widget/ExploreByTouchHelper;->m:I
|
|
|
|
.line 100
|
|
.line 101
|
|
invoke-virtual {v0, v3, v6}, Landroidx/customview/widget/ExploreByTouchHelper;->t(II)V
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
invoke-virtual {v0, p1, v5}, Landroidx/customview/widget/ExploreByTouchHelper;->t(II)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
goto :goto_1
|
|
|
|
.line 108
|
|
:cond_7
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->dispatchHoverEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
move-result p1
|
|
|
|
.line 112
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 113
|
|
.line 114
|
|
:goto_1
|
|
return v4
|
|
|
|
.line 115
|
|
:cond_8
|
|
return v3
|
|
.end method
|
|
|
|
.method public final dispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
return p1
|
|
|
|
.line 10
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v1
|
|
|
|
.line 19
|
|
const/high16 v2, -0x80000000
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v3, 0x1
|
|
|
|
.line 22
|
|
const/4 v4, 0x0
|
|
|
|
.line 23
|
|
if-eq v1, v3, :cond_9
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v1
|
|
|
|
.line 29
|
|
const/16 v5, 0x3d
|
|
|
|
.line 30
|
|
.line 31
|
|
const/4 v6, 0x0
|
|
|
|
.line 32
|
|
if-eq v1, v5, :cond_7
|
|
|
|
.line 33
|
|
.line 34
|
|
const/16 v5, 0x42
|
|
|
|
.line 35
|
|
.line 36
|
|
if-eq v1, v5, :cond_5
|
|
|
|
.line 37
|
|
.line 38
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
goto :goto_2
|
|
|
|
.line 42
|
|
:pswitch_0
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->hasNoModifiers()Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v7
|
|
|
|
.line 46
|
|
if-eqz v7, :cond_9
|
|
|
|
.line 47
|
|
.line 48
|
|
const/16 v7, 0x13
|
|
|
|
.line 49
|
|
.line 50
|
|
if-eq v1, v7, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
const/16 v7, 0x15
|
|
|
|
.line 53
|
|
.line 54
|
|
if-eq v1, v7, :cond_1
|
|
|
|
.line 55
|
|
.line 56
|
|
const/16 v7, 0x16
|
|
|
|
.line 57
|
|
.line 58
|
|
if-eq v1, v7, :cond_3
|
|
|
|
.line 59
|
|
.line 60
|
|
const/16 v5, 0x82
|
|
|
|
.line 61
|
|
.line 62
|
|
goto :goto_0
|
|
|
|
.line 63
|
|
:cond_1
|
|
const/16 v5, 0x11
|
|
|
|
.line 64
|
|
.line 65
|
|
goto :goto_0
|
|
|
|
.line 66
|
|
:cond_2
|
|
const/16 v5, 0x21
|
|
|
|
.line 67
|
|
.line 68
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getRepeatCount()I
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result v1
|
|
|
|
.line 72
|
|
add-int/2addr v1, v3
|
|
|
|
.line 73
|
|
move v7, v4
|
|
|
|
.line 74
|
|
:goto_1
|
|
if-ge v4, v1, :cond_4
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-virtual {v0, v5, v6}, Landroidx/customview/widget/ExploreByTouchHelper;->m(ILandroid/graphics/Rect;)Z
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result v8
|
|
|
|
.line 80
|
|
if-eqz v8, :cond_4
|
|
|
|
.line 81
|
|
.line 82
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
.line 83
|
|
.line 84
|
|
move v7, v3
|
|
|
|
.line 85
|
|
goto :goto_1
|
|
|
|
.line 86
|
|
:cond_4
|
|
move v4, v7
|
|
|
|
.line 87
|
|
goto :goto_2
|
|
|
|
.line 88
|
|
:cond_5
|
|
:pswitch_1
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->hasNoModifiers()Z
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result v1
|
|
|
|
.line 92
|
|
if-eqz v1, :cond_9
|
|
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getRepeatCount()I
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
move-result v1
|
|
|
|
.line 98
|
|
if-nez v1, :cond_9
|
|
|
|
.line 99
|
|
.line 100
|
|
iget v1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->l:I
|
|
|
|
.line 101
|
|
.line 102
|
|
if-eq v1, v2, :cond_6
|
|
|
|
.line 103
|
|
.line 104
|
|
const/16 v4, 0x10
|
|
|
|
.line 105
|
|
.line 106
|
|
invoke-virtual {v0, v1, v4}, Lcom/google/android/material/chip/Chip$ChipTouchHelper;->o(II)Z
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
:cond_6
|
|
move v4, v3
|
|
|
|
.line 110
|
|
goto :goto_2
|
|
|
|
.line 111
|
|
:cond_7
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->hasNoModifiers()Z
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
move-result v1
|
|
|
|
.line 115
|
|
if-eqz v1, :cond_8
|
|
|
|
.line 116
|
|
.line 117
|
|
const/4 v1, 0x2
|
|
|
|
.line 118
|
|
invoke-virtual {v0, v1, v6}, Landroidx/customview/widget/ExploreByTouchHelper;->m(ILandroid/graphics/Rect;)Z
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
move-result v4
|
|
|
|
.line 122
|
|
goto :goto_2
|
|
|
|
.line 123
|
|
:cond_8
|
|
invoke-virtual {p1, v3}, Landroid/view/KeyEvent;->hasModifiers(I)Z
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
move-result v1
|
|
|
|
.line 127
|
|
if-eqz v1, :cond_9
|
|
|
|
.line 128
|
|
.line 129
|
|
invoke-virtual {v0, v3, v6}, Landroidx/customview/widget/ExploreByTouchHelper;->m(ILandroid/graphics/Rect;)Z
|
|
|
|
.line 130
|
|
.line 131
|
|
.line 132
|
|
move-result v4
|
|
|
|
.line 133
|
|
:cond_9
|
|
:goto_2
|
|
if-eqz v4, :cond_a
|
|
|
|
.line 134
|
|
.line 135
|
|
iget v0, v0, Landroidx/customview/widget/ExploreByTouchHelper;->l:I
|
|
|
|
.line 136
|
|
.line 137
|
|
if-eq v0, v2, :cond_a
|
|
|
|
.line 138
|
|
.line 139
|
|
return v3
|
|
|
|
.line 140
|
|
:cond_a
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 141
|
|
.line 142
|
|
.line 143
|
|
move-result p1
|
|
|
|
.line 144
|
|
return p1
|
|
|
|
.line 145
|
|
:pswitch_data_0
|
|
.packed-switch 0x13
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final drawableStateChanged()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroidx/appcompat/widget/AppCompatCheckBox;->drawableStateChanged()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Z:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {v0}, Lcom/google/android/material/chip/ChipDrawable;->C(Landroid/graphics/drawable/Drawable;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0}, Landroid/view/View;->isEnabled()Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v2
|
|
|
|
.line 23
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->r:Z
|
|
|
|
.line 24
|
|
.line 25
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 26
|
|
.line 27
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->q:Z
|
|
|
|
.line 30
|
|
.line 31
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 32
|
|
.line 33
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 34
|
|
.line 35
|
|
:cond_1
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 36
|
|
.line 37
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 40
|
|
.line 41
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v3
|
|
|
|
.line 45
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 46
|
|
.line 47
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 48
|
|
.line 49
|
|
:cond_3
|
|
new-array v2, v2, [I
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0}, Landroid/view/View;->isEnabled()Z
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result v3
|
|
|
|
.line 55
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 56
|
|
.line 57
|
|
const v3, 0x101009e
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
aput v3, v2, v1
|
|
|
|
.line 61
|
|
.line 62
|
|
const/4 v1, 0x1
|
|
|
|
.line 63
|
|
:cond_4
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->r:Z
|
|
|
|
.line 64
|
|
.line 65
|
|
if-eqz v3, :cond_5
|
|
|
|
.line 66
|
|
.line 67
|
|
const v3, 0x101009c
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
aput v3, v2, v1
|
|
|
|
.line 71
|
|
.line 72
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 73
|
|
.line 74
|
|
:cond_5
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->q:Z
|
|
|
|
.line 75
|
|
.line 76
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 77
|
|
.line 78
|
|
const v3, 0x1010367
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
aput v3, v2, v1
|
|
|
|
.line 82
|
|
.line 83
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 84
|
|
.line 85
|
|
:cond_6
|
|
iget-boolean v3, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 86
|
|
.line 87
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 88
|
|
.line 89
|
|
const v3, 0x10100a7
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
aput v3, v2, v1
|
|
|
|
.line 93
|
|
.line 94
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 95
|
|
.line 96
|
|
:cond_7
|
|
invoke-virtual {p0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result v3
|
|
|
|
.line 100
|
|
if-eqz v3, :cond_8
|
|
|
|
.line 101
|
|
.line 102
|
|
const v3, 0x10100a1
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
aput v3, v2, v1
|
|
|
|
.line 106
|
|
.line 107
|
|
:cond_8
|
|
invoke-virtual {v0, v2}, Lcom/google/android/material/chip/ChipDrawable;->U([I)Z
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v1
|
|
|
|
.line 111
|
|
:cond_9
|
|
if-eqz v1, :cond_a
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
:cond_a
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Z:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
instance-of v1, v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 12
|
|
.line 13
|
|
check-cast v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-interface {v0}, Landroidx/core/graphics/drawable/WrappedDrawable;->b()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
goto :goto_0
|
|
|
|
.line 20
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 21
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v0, 0x1
|
|
|
|
.line 24
|
|
return v0
|
|
|
|
.line 25
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
.line 26
|
|
return v0
|
|
.end method
|
|
|
|
.method public final f()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Y:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->l:Landroid/view/View$OnClickListener;
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->z(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const/4 v0, 0x1
|
|
|
|
.line 25
|
|
iput-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 26
|
|
.line 27
|
|
return-void
|
|
|
|
.line 28
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 29
|
|
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->z(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
const/4 v0, 0x0
|
|
|
|
.line 33
|
|
iput-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 34
|
|
.line 35
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v1, Lcom/google/android/material/chip/ChipDrawable;->R:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1}, Lcom/google/android/material/ripple/RippleUtils;->c(Landroid/content/res/ColorStateList;)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getBackgroundDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v2
|
|
|
|
.line 15
|
|
const/4 v3, 0x0
|
|
|
|
.line 16
|
|
invoke-direct {v0, v1, v2, v3}, Landroid/graphics/drawable/RippleDrawable;-><init>(Landroid/content/res/ColorStateList;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
iput-object v0, p0, Lcom/google/android/material/chip/Chip;->k:Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 20
|
|
.line 21
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->k:Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/chip/Chip;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->h()V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAccessibilityClassName()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->v:Ljava/lang/CharSequence;
|
|
|
|
.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/chip/Chip;->v:Ljava/lang/CharSequence;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->e0:Z
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
instance-of v0, v0, Lcom/google/android/material/chip/ChipGroup;
|
|
|
|
.line 25
|
|
.line 26
|
|
if-nez v0, :cond_1
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 30
|
|
throw v0
|
|
|
|
.line 31
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/View;->isClickable()Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result v0
|
|
|
|
.line 35
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 36
|
|
.line 37
|
|
:goto_0
|
|
const-string v0, "android.widget.Button"
|
|
|
|
.line 38
|
|
.line 39
|
|
return-object v0
|
|
|
|
.line 40
|
|
:cond_3
|
|
const-string v0, "android.view.View"
|
|
|
|
.line 41
|
|
.line 42
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getBackgroundDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCheckedIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->g0:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCheckedIconTint()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->h0:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipBackgroundColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipCornerRadius()F
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->A()F
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(FF)F
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v0
|
|
|
|
.line 14
|
|
return v0
|
|
|
|
.line 15
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public getChipDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipEndPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->U:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
instance-of v1, v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
check-cast v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-interface {v0}, Landroidx/core/graphics/drawable/WrappedDrawable;->b()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
:cond_0
|
|
return-object v0
|
|
|
|
.line 21
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public getChipIconSize()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->W:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipIconTint()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->V:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipMinHeight()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipStartPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipStrokeColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->P:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChipStrokeWidth()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Q:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getChipText()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCloseIcon()Landroid/graphics/drawable/Drawable;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Z:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
instance-of v1, v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
check-cast v0, Landroidx/core/graphics/drawable/WrappedDrawable;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-interface {v0}, Landroidx/core/graphics/drawable/WrappedDrawable;->b()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
:cond_0
|
|
return-object v0
|
|
|
|
.line 21
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public getCloseIconContentDescription()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->d0:Landroid/text/SpannableStringBuilder;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCloseIconEndPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->q0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCloseIconSize()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->c0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCloseIconStartPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->p0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCloseIconTint()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->b0:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getEllipsize()Landroid/text/TextUtils$TruncateAt;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getFocusedRect(Landroid/graphics/Rect;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget v1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->l:I
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v2, 0x1
|
|
|
|
.line 10
|
|
if-eq v1, v2, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
iget v0, v0, Landroidx/customview/widget/ExploreByTouchHelper;->k:I
|
|
|
|
.line 13
|
|
.line 14
|
|
if-ne v0, v2, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBoundsInt()Landroid/graphics/Rect;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->getFocusedRect(Landroid/graphics/Rect;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-void
|
|
.end method
|
|
|
|
.method public getHideMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->j0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIconEndPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->m0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIconStartPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->l0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRippleColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->R:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, v0, Lcom/google/android/material/shape/MaterialShapeDrawable;->f:Lcom/google/android/material/shape/MaterialShapeDrawable$MaterialShapeDrawableState;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/shape/MaterialShapeDrawable$MaterialShapeDrawableState;->a:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getShowMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->i0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTextEndPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTextStartPadding()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public final h()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
if-nez v0, :cond_2
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-nez v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
goto :goto_0
|
|
|
|
.line 16
|
|
:cond_0
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 17
|
|
.line 18
|
|
iget v2, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 19
|
|
.line 20
|
|
add-float/2addr v1, v2
|
|
|
|
.line 21
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->z()F
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result v0
|
|
|
|
.line 25
|
|
add-float/2addr v0, v1
|
|
|
|
.line 26
|
|
float-to-int v0, v0
|
|
|
|
.line 27
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 28
|
|
.line 29
|
|
iget v2, v1, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 30
|
|
.line 31
|
|
iget v3, v1, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 32
|
|
.line 33
|
|
add-float/2addr v2, v3
|
|
|
|
.line 34
|
|
invoke-virtual {v1}, Lcom/google/android/material/chip/ChipDrawable;->y()F
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v1
|
|
|
|
.line 38
|
|
add-float/2addr v1, v2
|
|
|
|
.line 39
|
|
float-to-int v1, v1
|
|
|
|
.line 40
|
|
iget-object v2, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 41
|
|
.line 42
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 43
|
|
.line 44
|
|
new-instance v2, Landroid/graphics/Rect;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
iget-object v3, p0, Lcom/google/android/material/chip/Chip;->j:Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {v3, v2}, Landroid/graphics/drawable/InsetDrawable;->getPadding(Landroid/graphics/Rect;)Z
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
iget v3, v2, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 55
|
|
.line 56
|
|
add-int/2addr v1, v3
|
|
|
|
.line 57
|
|
iget v2, v2, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 58
|
|
.line 59
|
|
add-int/2addr v0, v2
|
|
|
|
.line 60
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v2
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result v3
|
|
|
|
.line 68
|
|
invoke-virtual {p0, v1, v2, v0, v3}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final i()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v1
|
|
|
|
.line 13
|
|
iput-object v1, v0, Landroid/text/TextPaint;->drawableState:[I
|
|
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getTextAppearance()Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v1
|
|
|
|
.line 19
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v2
|
|
|
|
.line 25
|
|
iget-object v3, p0, Lcom/google/android/material/chip/Chip;->A:Lcom/google/android/material/resources/TextAppearanceFontCallback;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v1, v2, v0, v3}, Lcom/google/android/material/resources/TextAppearance;->d(Landroid/content/Context;Landroid/text/TextPaint;Lcom/google/android/material/resources/TextAppearanceFontCallback;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/CheckBox;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0, v0}, Lcom/google/android/material/shape/MaterialShapeUtils;->c(Landroid/view/View;Lcom/google/android/material/shape/MaterialShapeDrawable;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
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/CheckBox;->onCreateDrawableState(I)[I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
sget-object v0, Lcom/google/android/material/chip/Chip;->D:[I
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 19
|
|
.line 20
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->e0:Z
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v0, Lcom/google/android/material/chip/Chip;->E:[I
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final onFocusChanged(ZILandroid/graphics/Rect;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/widget/CheckBox;->onFocusChanged(ZILandroid/graphics/Rect;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget v1, v0, Landroidx/customview/widget/ExploreByTouchHelper;->l:I
|
|
|
|
.line 11
|
|
.line 12
|
|
const/high16 v2, -0x80000000
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eq v1, v2, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0, v1}, Landroidx/customview/widget/ExploreByTouchHelper;->j(I)Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {v0, p2, p3}, Landroidx/customview/widget/ExploreByTouchHelper;->m(ILandroid/graphics/Rect;)Z
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x7
|
|
|
|
.line 6
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
const/16 v1, 0xa
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 14
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/chip/Chip;->setCloseIconHovered(Z)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v1
|
|
|
|
.line 26
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v2
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/RectF;->contains(FF)Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v0
|
|
|
|
.line 34
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/chip/Chip;->setCloseIconHovered(Z)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result p1
|
|
|
|
.line 41
|
|
return p1
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getAccessibilityClassName()Ljava/lang/CharSequence;
|
|
|
|
.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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 12
|
|
.line 13
|
|
const/4 v1, 0x0
|
|
|
|
.line 14
|
|
const/4 v2, 0x1
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->e0:Z
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
move v0, v2
|
|
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
.line 24
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p0}, Landroid/view/View;->isClickable()Z
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result v0
|
|
|
|
.line 31
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClickable(Z)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v0
|
|
|
|
.line 38
|
|
instance-of v0, v0, Lcom/google/android/material/chip/ChipGroup;
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result-object v0
|
|
|
|
.line 46
|
|
check-cast v0, Lcom/google/android/material/chip/ChipGroup;
|
|
|
|
.line 47
|
|
.line 48
|
|
new-instance v3, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-direct {v3, p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;-><init>(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
iget-boolean p1, v0, Lcom/google/android/material/internal/FlowLayout;->g:Z
|
|
|
|
.line 54
|
|
.line 55
|
|
const/4 v4, -0x1
|
|
|
|
.line 56
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 57
|
|
.line 58
|
|
move p1, v1
|
|
|
|
.line 59
|
|
:goto_1
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result v5
|
|
|
|
.line 63
|
|
if-ge v1, v5, :cond_3
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result-object v5
|
|
|
|
.line 69
|
|
instance-of v6, v5, Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 70
|
|
.line 71
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object v6
|
|
|
|
.line 77
|
|
invoke-virtual {v6}, Landroid/view/View;->getVisibility()I
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result v6
|
|
|
|
.line 81
|
|
if-nez v6, :cond_2
|
|
|
|
.line 82
|
|
.line 83
|
|
check-cast v5, Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 84
|
|
.line 85
|
|
if-ne v5, p0, :cond_1
|
|
|
|
.line 86
|
|
.line 87
|
|
goto :goto_2
|
|
|
|
.line 88
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 89
|
|
.line 90
|
|
:cond_2
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 91
|
|
.line 92
|
|
goto :goto_1
|
|
|
|
.line 93
|
|
:cond_3
|
|
move p1, v4
|
|
|
|
.line 94
|
|
:goto_2
|
|
sget v0, Lcom/google/android/material/R$id;->row_index_key:I
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object v0
|
|
|
|
.line 100
|
|
instance-of v1, v0, Ljava/lang/Integer;
|
|
|
|
.line 101
|
|
.line 102
|
|
if-nez v1, :cond_4
|
|
|
|
.line 103
|
|
.line 104
|
|
goto :goto_3
|
|
|
|
.line 105
|
|
:cond_4
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v4
|
|
|
|
.line 111
|
|
:goto_3
|
|
invoke-virtual {p0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
move-result v0
|
|
|
|
.line 115
|
|
invoke-static {v0, v4, v2, p1, v2}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionItemInfoCompat;->a(ZIIII)Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionItemInfoCompat;
|
|
|
|
.line 116
|
|
.line 117
|
|
.line 118
|
|
move-result-object p1
|
|
|
|
.line 119
|
|
invoke-virtual {v3, p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->m(Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionItemInfoCompat;)V
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onResolvePointerIcon(Landroid/view/MotionEvent;I)Landroid/view/PointerIcon;
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v2
|
|
|
|
.line 13
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/RectF;->contains(FF)Z
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v0
|
|
|
|
.line 17
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0}, Landroid/view/View;->isEnabled()Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v0
|
|
|
|
.line 23
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object p1
|
|
|
|
.line 29
|
|
const/16 p2, 0x3ea
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {p1, p2}, Landroid/view/PointerIcon;->getSystemIcon(Landroid/content/Context;I)Landroid/view/PointerIcon;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object p1
|
|
|
|
.line 35
|
|
return-object p1
|
|
|
|
.line 36
|
|
:cond_0
|
|
invoke-super {p0, p1, p2}, Landroid/widget/CheckBox;->onResolvePointerIcon(Landroid/view/MotionEvent;I)Landroid/view/PointerIcon;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object p1
|
|
|
|
.line 40
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final onRtlPropertiesChanged(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->onRtlPropertiesChanged(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget v0, p0, Lcom/google/android/material/chip/Chip;->t:I
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
iput p1, p0, Lcom/google/android/material/chip/Chip;->t:I
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->h()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-direct {p0}, Lcom/google/android/material/chip/Chip;->getCloseIconTouchBounds()Landroid/graphics/RectF;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v1
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v2
|
|
|
|
.line 13
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v3
|
|
|
|
.line 17
|
|
invoke-virtual {v1, v2, v3}, Landroid/graphics/RectF;->contains(FF)Z
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v1
|
|
|
|
.line 21
|
|
const/4 v2, 0x1
|
|
|
|
.line 22
|
|
const/4 v3, 0x0
|
|
|
|
.line 23
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 24
|
|
.line 25
|
|
if-eq v0, v2, :cond_2
|
|
|
|
.line 26
|
|
.line 27
|
|
const/4 v4, 0x2
|
|
|
|
.line 28
|
|
if-eq v0, v4, :cond_0
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v1, 0x3
|
|
|
|
.line 31
|
|
if-eq v0, v1, :cond_5
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_2
|
|
|
|
.line 34
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 35
|
|
.line 36
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 37
|
|
.line 38
|
|
if-nez v1, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-direct {p0, v3}, Lcom/google/android/material/chip/Chip;->setCloseIconPressed(Z)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
:cond_1
|
|
:goto_0
|
|
move v0, v2
|
|
|
|
.line 44
|
|
goto :goto_3
|
|
|
|
.line 45
|
|
:cond_2
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->p:Z
|
|
|
|
.line 46
|
|
.line 47
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {p0, v3}, Landroid/view/View;->playSoundEffect(I)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->l:Landroid/view/View$OnClickListener;
|
|
|
|
.line 53
|
|
.line 54
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-interface {v0, p0}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
:cond_3
|
|
iget-boolean v0, p0, Lcom/google/android/material/chip/Chip;->x:Z
|
|
|
|
.line 60
|
|
.line 61
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 62
|
|
.line 63
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->w:Lcom/google/android/material/chip/Chip$ChipTouchHelper;
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v0, v2, v2}, Landroidx/customview/widget/ExploreByTouchHelper;->t(II)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
:cond_4
|
|
move v0, v2
|
|
|
|
.line 69
|
|
goto :goto_1
|
|
|
|
.line 70
|
|
:cond_5
|
|
move v0, v3
|
|
|
|
.line 71
|
|
:goto_1
|
|
invoke-direct {p0, v3}, Lcom/google/android/material/chip/Chip;->setCloseIconPressed(Z)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
goto :goto_3
|
|
|
|
.line 75
|
|
:cond_6
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-direct {p0, v2}, Lcom/google/android/material/chip/Chip;->setCloseIconPressed(Z)V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
goto :goto_0
|
|
|
|
.line 81
|
|
:cond_7
|
|
:goto_2
|
|
move v0, v3
|
|
|
|
.line 82
|
|
:goto_3
|
|
if-nez v0, :cond_9
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result p1
|
|
|
|
.line 88
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 89
|
|
.line 90
|
|
goto :goto_4
|
|
|
|
.line 91
|
|
:cond_8
|
|
return v3
|
|
|
|
.line 92
|
|
:cond_9
|
|
:goto_4
|
|
return v2
|
|
.end method
|
|
|
|
.method public setAccessibilityClassName(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/CharSequence;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/chip/Chip;->v:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getBackgroundDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->k:Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string p1, "Chip"
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v0, "Do not set the background; Chip manages its own background drawable."
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
|
|
.line 19
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundColor(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "Chip"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Do not set the background color; Chip manages its own background drawable."
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->getBackgroundDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->k:Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string p1, "Chip"
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v0, "Do not set the background drawable; Chip manages its own background drawable."
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
|
|
.line 19
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatCheckBox;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundResource(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "Chip"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Do not set the background resource; Chip manages its own background drawable."
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const-string p1, "Chip"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Do not set the background tint list; Chip manages its own background drawable."
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const-string p1, "Chip"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Do not set the background tint mode; Chip manages its own background drawable."
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckable(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->F(Z)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckableResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->F(Z)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChecked(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/Chip;->o:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_0
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->e0:Z
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setChecked(Z)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIcon(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->G(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconEnabled(Z)V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setCheckedIconVisible(Z)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconEnabledResource(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setCheckedIconVisible(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, 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
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->G(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconTint(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->H(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconTintResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->H(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconVisible(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 3
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->I(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckedIconVisible(Z)V
|
|
.locals 1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->I(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipBackgroundColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 2
|
|
.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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipBackgroundColorResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->M:Landroid/content/res/ColorStateList;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->onStateChange([I)Z
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipCornerRadius(F)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->J(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipCornerRadiusResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->J(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipDrawable(Lcom/google/android/material/chip/ChipDrawable;)V
|
|
.locals 3
|
|
.param p1 # Lcom/google/android/material/chip/ChipDrawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
new-instance v1, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v2, 0x0
|
|
|
|
.line 10
|
|
invoke-direct {v1, v2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
iput-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->O0:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v0, 0x0
|
|
|
|
.line 18
|
|
iput-boolean v0, p1, Lcom/google/android/material/chip/ChipDrawable;->Q0:Z
|
|
|
|
.line 19
|
|
.line 20
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iput-object v0, p1, Lcom/google/android/material/chip/ChipDrawable;->O0:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 26
|
|
.line 27
|
|
iget p1, p0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->d(I)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipEndPadding(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipEndPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 16
|
|
.line 17
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->r0:F
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIcon(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->K(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconEnabled(Z)V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setChipIconVisible(Z)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconEnabledResource(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setChipIconVisible(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, 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
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->K(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconSize(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->L(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconSizeResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->L(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconTint(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->M(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconTintResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->M(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconVisible(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 3
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->N(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipIconVisible(Z)V
|
|
.locals 1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->N(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipMinHeight(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 6
|
|
.line 7
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipMinHeightResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 16
|
|
.line 17
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->N:F
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStartPadding(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStartPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 16
|
|
.line 17
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->k0:F
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStrokeColor(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->O(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStrokeColorResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->O(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStrokeWidth(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->P(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipStrokeWidthResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->P(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipText(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/CharSequence;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChipTextResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIcon(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Q(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->f()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconContentDescription(Ljava/lang/CharSequence;)V
|
|
.locals 3
|
|
.param p1 # Ljava/lang/CharSequence;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->d0:Landroid/text/SpannableStringBuilder;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eq v1, p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-static {}, Landroidx/core/text/BidiFormatter;->c()Landroidx/core/text/BidiFormatter;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v1
|
|
|
|
.line 13
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
sget-object v2, Landroidx/core/text/TextDirectionHeuristicsCompat;->a:Landroidx/core/text/TextDirectionHeuristicCompat;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v1, p1}, Landroidx/core/text/BidiFormatter;->d(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->d0:Landroid/text/SpannableStringBuilder;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconEnabled(Z)V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setCloseIconVisible(Z)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconEnabledResource(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setCloseIconVisible(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconEndPadding(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->R(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconEndPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->R(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, 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
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Q(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->f()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconSize(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->S(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconSizeResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->S(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconStartPadding(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->T(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconStartPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->T(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconTint(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->V(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconTintResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->V(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconVisible(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/BoolRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->setCloseIconVisible(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseIconVisible(Z)V
|
|
.locals 1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->W(Z)V
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->f()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
if-nez p1, :cond_1
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez p3, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatCheckBox;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string p2, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
throw p1
|
|
|
|
.line 17
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string p2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
if-nez p1, :cond_1
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez p3, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatCheckBox;->setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string p2, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
throw p1
|
|
|
|
.line 17
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string p2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setCompoundDrawablesRelativeWithIntrinsicBounds(IIII)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/CheckBox;->setCompoundDrawablesRelativeWithIntrinsicBounds(IIII)V
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 3
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 4
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/CheckBox;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setCompoundDrawablesWithIntrinsicBounds(IIII)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/CheckBox;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set end drawable using R.attr#closeIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 3
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set start drawable using R.attr#chipIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 4
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/CheckBox;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set right drawable using R.attr#closeIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p2, "Please set left drawable using R.attr#chipIcon."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setElevation(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->n(F)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
sget-object v0, Landroid/text/TextUtils$TruncateAt;->MARQUEE:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eq p1, v0, :cond_2
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->P0:Landroid/text/TextUtils$TruncateAt;
|
|
|
|
.line 18
|
|
.line 19
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 20
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 21
|
|
.line 22
|
|
const-string v0, "Text within a chip are not allowed to scroll."
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setEnsureMinTouchTargetSize(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/chip/Chip;->s:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
iget p1, p0, Lcom/google/android/material/chip/Chip;->u:I
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/chip/Chip;->d(I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGravity(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const v0, 0x800013
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
const-string p1, "Chip"
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v0, "Chip text must be vertically center and start aligned"
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
|
|
.line 14
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setGravity(I)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/animation/MotionSpec;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->j0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 6
|
|
.line 7
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHideMotionSpecResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AnimatorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Lcom/google/android/material/animation/MotionSpec;->a(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->j0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconEndPadding(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->X(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconEndPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->X(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconStartPadding(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Y(F)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconStartPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Y(F)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInternalOnCheckedChangeListener(Lcom/google/android/material/internal/MaterialCheckable$OnCheckedChangeListener;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/internal/MaterialCheckable$OnCheckedChangeListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/material/internal/MaterialCheckable$OnCheckedChangeListener<",
|
|
"Lcom/google/android/material/chip/Chip;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/chip/Chip;->n:Lcom/google/android/material/internal/MaterialCheckable$OnCheckedChangeListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLayoutDirection(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setLayoutDirection(I)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLines(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
if-gt p1, v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setLines(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v0, "Chip does not support multi-line text"
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setMaxLines(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
if-gt p1, v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setMaxLines(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v0, "Chip does not support multi-line text"
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setMaxWidth(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setMaxWidth(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->R0:I
|
|
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMinLines(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
if-gt p1, v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setMinLines(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v0, "Chip does not support multi-line text"
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
|
|
.locals 0
|
|
.param p1 # Landroid/widget/CompoundButton$OnCheckedChangeListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/chip/Chip;->m:Landroid/widget/CompoundButton$OnCheckedChangeListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnCloseIconClickListener(Landroid/view/View$OnClickListener;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/chip/Chip;->l:Landroid/view/View$OnClickListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->f()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColor(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/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Z(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColorResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/ChipDrawable;->Z(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
iget-object p1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->g()V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
: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
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/animation/MotionSpec;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->i0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 6
|
|
.line 7
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowMotionSpecResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AnimatorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1, p1}, Lcom/google/android/material/animation/MotionSpec;->a(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
iput-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->i0:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSingleLine(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setSingleLine(Z)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v0, "Chip does not support multi-line text"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setText(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto :goto_1
|
|
|
|
.line 6
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string p1, ""
|
|
|
|
.line 9
|
|
.line 10
|
|
:cond_1
|
|
iget-boolean v0, v0, Lcom/google/android/material/chip/ChipDrawable;->Q0:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 v0, 0x0
|
|
|
|
.line 15
|
|
goto :goto_0
|
|
|
|
.line 16
|
|
:cond_2
|
|
move-object v0, p1
|
|
|
|
.line 17
|
|
:goto_0
|
|
invoke-super {p0, v0, p2}, Landroid/widget/CheckBox;->setText(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
iget-object p2, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 23
|
|
.line 24
|
|
iget-object v0, p2, Lcom/google/android/material/chip/ChipDrawable;->S:Ljava/lang/CharSequence;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {v0, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v0
|
|
|
|
.line 30
|
|
if-nez v0, :cond_3
|
|
|
|
.line 31
|
|
.line 32
|
|
iput-object p1, p2, Lcom/google/android/material/chip/ChipDrawable;->S:Ljava/lang/CharSequence;
|
|
|
|
.line 33
|
|
.line 34
|
|
iget-object p1, p2, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
.line 35
|
|
.line 36
|
|
const/4 v0, 0x1
|
|
|
|
.line 37
|
|
iput-boolean v0, p1, Lcom/google/android/material/internal/TextDrawableHelper;->e:Z
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p2}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAppearance(I)V
|
|
.locals 3
|
|
|
|
.line 9
|
|
invoke-super {p0, p1}, Landroid/widget/CheckBox;->setTextAppearance(I)V
|
|
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 11
|
|
new-instance v1, Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
iget-object v2, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
invoke-direct {v1, v2, p1}, Lcom/google/android/material/resources/TextAppearance;-><init>(Landroid/content/Context;I)V
|
|
|
|
.line 12
|
|
iget-object p1, v0, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
invoke-virtual {p1, v1, v2}, Lcom/google/android/material/internal/TextDrawableHelper;->c(Lcom/google/android/material/resources/TextAppearance;Landroid/content/Context;)V
|
|
|
|
.line 13
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->i()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTextAppearance(Landroid/content/Context;I)V
|
|
.locals 2
|
|
|
|
.line 4
|
|
invoke-super {p0, p1, p2}, Landroid/widget/CheckBox;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 6
|
|
new-instance v0, Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
iget-object v1, p1, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v1, p2}, Lcom/google/android/material/resources/TextAppearance;-><init>(Landroid/content/Context;I)V
|
|
|
|
.line 7
|
|
iget-object p1, p1, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/google/android/material/internal/TextDrawableHelper;->c(Lcom/google/android/material/resources/TextAppearance;Landroid/content/Context;)V
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->i()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAppearance(Lcom/google/android/material/resources/TextAppearance;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/resources/TextAppearance;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
iget-object v0, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
invoke-virtual {v1, p1, v0}, Lcom/google/android/material/internal/TextDrawableHelper;->c(Lcom/google/android/material/resources/TextAppearance;Landroid/content/Context;)V
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->i()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAppearanceResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.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-virtual {p0, v0, p1}, Lcom/google/android/material/chip/Chip;->setTextAppearance(Landroid/content/Context;I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextEndPadding(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextEndPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 16
|
|
.line 17
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->o0:F
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTextSize(IF)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/CheckBox;->setTextSize(IF)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v1
|
|
|
|
.line 16
|
|
invoke-static {p1, p2, v1}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p1
|
|
|
|
.line 20
|
|
iget-object p2, v0, Lcom/google/android/material/chip/ChipDrawable;->y0:Lcom/google/android/material/internal/TextDrawableHelper;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, p2, Lcom/google/android/material/internal/TextDrawableHelper;->g:Lcom/google/android/material/resources/TextAppearance;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
iput p1, v1, Lcom/google/android/material/resources/TextAppearance;->l:F
|
|
|
|
.line 27
|
|
.line 28
|
|
iget-object p2, p2, Lcom/google/android/material/internal/TextDrawableHelper;->a:Landroid/text/TextPaint;
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Paint;->setTextSize(F)V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->a()V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/chip/Chip;->i()V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextStartPadding(F)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 6
|
|
.line 7
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextStartPaddingResource(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/chip/Chip;->i:Lcom/google/android/material/chip/ChipDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, v0, Lcom/google/android/material/chip/ChipDrawable;->s0:Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
iget v1, v0, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 16
|
|
.line 17
|
|
cmpl-float v1, v1, p1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p1, v0, Lcom/google/android/material/chip/ChipDrawable;->n0:F
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0}, Lcom/google/android/material/chip/ChipDrawable;->D()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|