* 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>
6587 lines
135 KiB
Smali
6587 lines
135 KiB
Smali
.class public Lcom/google/android/material/tabs/TabLayout;
|
|
.super Landroid/widget/HorizontalScrollView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Landroidx/viewpager/widget/ViewPager$DecorView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;,
|
|
Lcom/google/android/material/tabs/TabLayout$Tab;,
|
|
Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;,
|
|
Lcom/google/android/material/tabs/TabLayout$TabView;,
|
|
Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;,
|
|
Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;,
|
|
Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;,
|
|
Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;,
|
|
Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;,
|
|
Lcom/google/android/material/tabs/TabLayout$TabIndicatorAnimationMode;,
|
|
Lcom/google/android/material/tabs/TabLayout$TabIndicatorGravity;,
|
|
Lcom/google/android/material/tabs/TabLayout$TabGravity;,
|
|
Lcom/google/android/material/tabs/TabLayout$LabelVisibility;,
|
|
Lcom/google/android/material/tabs/TabLayout$Mode;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final d0:I
|
|
|
|
.field public static final e0:Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
|
|
# instance fields
|
|
.field public final A:I
|
|
|
|
.field public final B:I
|
|
|
|
.field public final C:I
|
|
|
|
.field public D:I
|
|
|
|
.field public final E:I
|
|
|
|
.field public F:I
|
|
|
|
.field public G:I
|
|
|
|
.field public H:Z
|
|
|
|
.field public I:Z
|
|
|
|
.field public J:I
|
|
|
|
.field public K:I
|
|
|
|
.field public L:Z
|
|
|
|
.field public M:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
|
|
|
|
.field public final N:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public O:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
.field public final P:Ljava/util/ArrayList;
|
|
|
|
.field public Q:Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
|
|
|
|
.field public R:Landroid/animation/ValueAnimator;
|
|
|
|
.field public S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.field public T:Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.field public U:Landroid/database/DataSetObserver;
|
|
|
|
.field public V:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.field public W:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.field public a0:Z
|
|
|
|
.field public b0:I
|
|
|
|
.field public c:I
|
|
|
|
.field public final c0:Landroidx/core/util/Pools$SimplePool;
|
|
|
|
.field public final f:Ljava/util/ArrayList;
|
|
|
|
.field public g:Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.field public final h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.field public final i:I
|
|
|
|
.field public final j:I
|
|
|
|
.field public final k:I
|
|
|
|
.field public final l:I
|
|
|
|
.field public final m:I
|
|
|
|
.field public final n:I
|
|
|
|
.field public final o:I
|
|
|
|
.field public p:Landroid/content/res/ColorStateList;
|
|
|
|
.field public q:Landroid/content/res/ColorStateList;
|
|
|
|
.field public r:Landroid/content/res/ColorStateList;
|
|
|
|
.field public s:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public t:I
|
|
|
|
.field public final u:F
|
|
|
|
.field public final v:F
|
|
|
|
.field public final w:F
|
|
|
|
.field public final x:I
|
|
|
|
.field public y:I
|
|
|
|
.field public final z:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_Design_TabLayout:I
|
|
|
|
.line 2
|
|
.line 3
|
|
sput v0, Lcom/google/android/material/tabs/TabLayout;->d0:I
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/16 v1, 0x10
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {v0, v1}, Landroidx/core/util/Pools$SynchronizedPool;-><init>(I)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
sput-object v0, Lcom/google/android/material/tabs/TabLayout;->e0:Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 12
|
|
|
|
.line 1
|
|
sget v3, Lcom/google/android/material/R$attr;->tabStyle:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
sget v4, Lcom/google/android/material/tabs/TabLayout;->d0:I
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p1, v1, v3, v4}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1, v1, v3}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const/4 p1, -0x1
|
|
|
|
.line 14
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->c:I
|
|
|
|
.line 15
|
|
.line 16
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 22
|
|
.line 23
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->o:I
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 v6, 0x0
|
|
|
|
.line 26
|
|
iput v6, p0, Lcom/google/android/material/tabs/TabLayout;->t:I
|
|
|
|
.line 27
|
|
.line 28
|
|
const v0, 0x7fffffff
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
iput v0, p0, Lcom/google/android/material/tabs/TabLayout;->y:I
|
|
|
|
.line 32
|
|
.line 33
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->J:I
|
|
|
|
.line 34
|
|
.line 35
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->P:Ljava/util/ArrayList;
|
|
|
|
.line 41
|
|
.line 42
|
|
new-instance v0, Landroidx/core/util/Pools$SimplePool;
|
|
|
|
.line 43
|
|
.line 44
|
|
const/16 v2, 0xc
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {v0, v2}, Landroidx/core/util/Pools$SimplePool;-><init>(I)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->c0:Landroidx/core/util/Pools$SimplePool;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-object v0
|
|
|
|
.line 55
|
|
invoke-virtual {p0, v6}, Landroid/view/View;->setHorizontalScrollBarEnabled(Z)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
new-instance v7, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 59
|
|
.line 60
|
|
invoke-direct {v7, p0, v0}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;-><init>(Lcom/google/android/material/tabs/TabLayout;Landroid/content/Context;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
iput-object v7, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 64
|
|
.line 65
|
|
new-instance v2, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 66
|
|
.line 67
|
|
const/4 v5, -0x2
|
|
|
|
.line 68
|
|
invoke-direct {v2, v5, p1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
invoke-super {p0, v7, v6, v2}, Landroid/widget/HorizontalScrollView;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->TabLayout:[I
|
|
|
|
.line 75
|
|
.line 76
|
|
sget v5, Lcom/google/android/material/R$styleable;->TabLayout_tabTextAppearance:I
|
|
|
|
.line 77
|
|
.line 78
|
|
filled-new-array {v5}, [I
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result-object v5
|
|
|
|
.line 82
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
move-result-object v1
|
|
|
|
.line 86
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result-object v2
|
|
|
|
.line 90
|
|
invoke-static {v2}, Lcom/google/android/material/drawable/DrawableUtils;->d(Landroid/graphics/drawable/Drawable;)Landroid/content/res/ColorStateList;
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
move-result-object v2
|
|
|
|
.line 94
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 95
|
|
.line 96
|
|
new-instance v3, Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
.line 97
|
|
.line 98
|
|
invoke-direct {v3}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>()V
|
|
|
|
.line 99
|
|
.line 100
|
|
.line 101
|
|
invoke-virtual {v3, v2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->o(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
invoke-virtual {v3, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->l(Landroid/content/Context;)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {p0}, Landroid/view/View;->getElevation()F
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v2
|
|
|
|
.line 111
|
|
invoke-virtual {v3, v2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->n(F)V
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
invoke-virtual {p0, v3}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 115
|
|
.line 116
|
|
.line 117
|
|
:cond_0
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicator:I
|
|
|
|
.line 118
|
|
.line 119
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->c(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
move-result-object v2
|
|
|
|
.line 123
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorColor:I
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-virtual {v1, v2, v6}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
move-result v2
|
|
|
|
.line 132
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicatorColor(I)V
|
|
|
|
.line 133
|
|
.line 134
|
|
.line 135
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorHeight:I
|
|
|
|
.line 136
|
|
.line 137
|
|
invoke-virtual {v1, v2, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
move-result v2
|
|
|
|
.line 141
|
|
invoke-virtual {v7, v2}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->b(I)V
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorGravity:I
|
|
|
|
.line 145
|
|
.line 146
|
|
invoke-virtual {v1, v2, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
move-result v2
|
|
|
|
.line 150
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicatorGravity(I)V
|
|
|
|
.line 151
|
|
.line 152
|
|
.line 153
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorAnimationMode:I
|
|
|
|
.line 154
|
|
.line 155
|
|
invoke-virtual {v1, v2, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 156
|
|
.line 157
|
|
.line 158
|
|
move-result v2
|
|
|
|
.line 159
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setTabIndicatorAnimationMode(I)V
|
|
|
|
.line 160
|
|
.line 161
|
|
.line 162
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorFullWidth:I
|
|
|
|
.line 163
|
|
.line 164
|
|
const/4 v3, 0x1
|
|
|
|
.line 165
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 166
|
|
.line 167
|
|
.line 168
|
|
move-result v2
|
|
|
|
.line 169
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setTabIndicatorFullWidth(Z)V
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabPadding:I
|
|
|
|
.line 173
|
|
.line 174
|
|
invoke-virtual {v1, v2, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 175
|
|
.line 176
|
|
.line 177
|
|
move-result v2
|
|
|
|
.line 178
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->l:I
|
|
|
|
.line 179
|
|
.line 180
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->k:I
|
|
|
|
.line 181
|
|
.line 182
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->j:I
|
|
|
|
.line 183
|
|
.line 184
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->i:I
|
|
|
|
.line 185
|
|
.line 186
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingStart:I
|
|
|
|
.line 187
|
|
.line 188
|
|
invoke-virtual {v1, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 189
|
|
.line 190
|
|
.line 191
|
|
move-result v4
|
|
|
|
.line 192
|
|
iput v4, p0, Lcom/google/android/material/tabs/TabLayout;->i:I
|
|
|
|
.line 193
|
|
.line 194
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingTop:I
|
|
|
|
.line 195
|
|
.line 196
|
|
invoke-virtual {v1, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 197
|
|
.line 198
|
|
.line 199
|
|
move-result v4
|
|
|
|
.line 200
|
|
iput v4, p0, Lcom/google/android/material/tabs/TabLayout;->j:I
|
|
|
|
.line 201
|
|
.line 202
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingEnd:I
|
|
|
|
.line 203
|
|
.line 204
|
|
invoke-virtual {v1, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 205
|
|
.line 206
|
|
.line 207
|
|
move-result v4
|
|
|
|
.line 208
|
|
iput v4, p0, Lcom/google/android/material/tabs/TabLayout;->k:I
|
|
|
|
.line 209
|
|
.line 210
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingBottom:I
|
|
|
|
.line 211
|
|
.line 212
|
|
invoke-virtual {v1, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 213
|
|
.line 214
|
|
.line 215
|
|
move-result v2
|
|
|
|
.line 216
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->l:I
|
|
|
|
.line 217
|
|
.line 218
|
|
sget v2, Lcom/google/android/material/R$attr;->isMaterial3Theme:I
|
|
|
|
.line 219
|
|
.line 220
|
|
invoke-static {v0, v2, v6}, Lcom/google/android/material/resources/MaterialAttributes;->b(Landroid/content/Context;IZ)Z
|
|
|
|
.line 221
|
|
.line 222
|
|
.line 223
|
|
move-result v2
|
|
|
|
.line 224
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 225
|
|
.line 226
|
|
sget v2, Lcom/google/android/material/R$attr;->textAppearanceTitleSmall:I
|
|
|
|
.line 227
|
|
.line 228
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->m:I
|
|
|
|
.line 229
|
|
.line 230
|
|
goto :goto_0
|
|
|
|
.line 231
|
|
:cond_1
|
|
sget v2, Lcom/google/android/material/R$attr;->textAppearanceButton:I
|
|
|
|
.line 232
|
|
.line 233
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->m:I
|
|
|
|
.line 234
|
|
.line 235
|
|
:goto_0
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabTextAppearance:I
|
|
|
|
.line 236
|
|
.line 237
|
|
sget v4, Lcom/google/android/material/R$style;->TextAppearance_Design_Tab:I
|
|
|
|
.line 238
|
|
.line 239
|
|
invoke-virtual {v1, v2, v4}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 240
|
|
.line 241
|
|
.line 242
|
|
move-result v2
|
|
|
|
.line 243
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->n:I
|
|
|
|
.line 244
|
|
.line 245
|
|
sget-object v4, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
.line 246
|
|
.line 247
|
|
invoke-virtual {v0, v2, v4}, Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 248
|
|
.line 249
|
|
.line 250
|
|
move-result-object v4
|
|
|
|
.line 251
|
|
:try_start_0
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
.line 252
|
|
.line 253
|
|
invoke-virtual {v4, v5, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 254
|
|
.line 255
|
|
.line 256
|
|
move-result v5
|
|
|
|
.line 257
|
|
int-to-float v5, v5
|
|
|
|
.line 258
|
|
iput v5, p0, Lcom/google/android/material/tabs/TabLayout;->u:F
|
|
|
|
.line 259
|
|
.line 260
|
|
sget v7, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
|
|
|
.line 261
|
|
.line 262
|
|
invoke-static {v0, v4, v7}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 263
|
|
.line 264
|
|
.line 265
|
|
move-result-object v7
|
|
|
|
.line 266
|
|
iput-object v7, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 267
|
|
.line 268
|
|
invoke-virtual {v4}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 269
|
|
.line 270
|
|
.line 271
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabSelectedTextAppearance:I
|
|
|
|
.line 272
|
|
.line 273
|
|
invoke-virtual {v1, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 274
|
|
.line 275
|
|
.line 276
|
|
move-result v4
|
|
|
|
.line 277
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 278
|
|
.line 279
|
|
sget v4, Lcom/google/android/material/R$styleable;->TabLayout_tabSelectedTextAppearance:I
|
|
|
|
.line 280
|
|
.line 281
|
|
invoke-virtual {v1, v4, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 282
|
|
.line 283
|
|
.line 284
|
|
move-result v2
|
|
|
|
.line 285
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->o:I
|
|
|
|
.line 286
|
|
.line 287
|
|
:cond_2
|
|
iget v2, p0, Lcom/google/android/material/tabs/TabLayout;->o:I
|
|
|
|
.line 288
|
|
.line 289
|
|
const/4 v4, 0x2
|
|
|
|
.line 290
|
|
sget-object v7, Landroid/widget/HorizontalScrollView;->EMPTY_STATE_SET:[I
|
|
|
|
.line 291
|
|
.line 292
|
|
sget-object v8, Landroid/widget/HorizontalScrollView;->SELECTED_STATE_SET:[I
|
|
|
|
.line 293
|
|
.line 294
|
|
if-eq v2, p1, :cond_4
|
|
|
|
.line 295
|
|
.line 296
|
|
sget-object v9, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
.line 297
|
|
.line 298
|
|
invoke-virtual {v0, v2, v9}, Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 299
|
|
.line 300
|
|
.line 301
|
|
move-result-object v2
|
|
|
|
.line 302
|
|
:try_start_1
|
|
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
.line 303
|
|
.line 304
|
|
float-to-int v5, v5
|
|
|
|
.line 305
|
|
invoke-virtual {v2, v9, v5}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 306
|
|
.line 307
|
|
.line 308
|
|
move-result v5
|
|
|
|
.line 309
|
|
int-to-float v5, v5
|
|
|
|
.line 310
|
|
iput v5, p0, Lcom/google/android/material/tabs/TabLayout;->v:F
|
|
|
|
.line 311
|
|
.line 312
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
|
|
|
.line 313
|
|
.line 314
|
|
invoke-static {v0, v2, v5}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 315
|
|
.line 316
|
|
.line 317
|
|
move-result-object v5
|
|
|
|
.line 318
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 319
|
|
.line 320
|
|
iget-object v9, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 321
|
|
.line 322
|
|
invoke-virtual {v9}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
.line 323
|
|
.line 324
|
|
.line 325
|
|
move-result v9
|
|
|
|
.line 326
|
|
const v10, 0x10100a1
|
|
|
|
.line 327
|
|
.line 328
|
|
.line 329
|
|
filled-new-array {v10}, [I
|
|
|
|
.line 330
|
|
.line 331
|
|
.line 332
|
|
move-result-object v10
|
|
|
|
.line 333
|
|
invoke-virtual {v5}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
.line 334
|
|
.line 335
|
|
.line 336
|
|
move-result v11
|
|
|
|
.line 337
|
|
invoke-virtual {v5, v10, v11}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
|
|
|
.line 338
|
|
.line 339
|
|
.line 340
|
|
move-result v5
|
|
|
|
.line 341
|
|
new-array v10, v4, [[I
|
|
|
|
.line 342
|
|
.line 343
|
|
new-array v11, v4, [I
|
|
|
|
.line 344
|
|
.line 345
|
|
aput-object v8, v10, v6
|
|
|
|
.line 346
|
|
.line 347
|
|
aput v5, v11, v6
|
|
|
|
.line 348
|
|
.line 349
|
|
aput-object v7, v10, v3
|
|
|
|
.line 350
|
|
.line 351
|
|
aput v9, v11, v3
|
|
|
|
.line 352
|
|
.line 353
|
|
new-instance v5, Landroid/content/res/ColorStateList;
|
|
|
|
.line 354
|
|
.line 355
|
|
invoke-direct {v5, v10, v11}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
|
|
|
|
.line 356
|
|
.line 357
|
|
.line 358
|
|
iput-object v5, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 359
|
|
.line 360
|
|
goto :goto_1
|
|
|
|
.line 361
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 362
|
|
move-object p1, v0
|
|
|
|
.line 363
|
|
goto :goto_2
|
|
|
|
.line 364
|
|
:cond_3
|
|
:goto_1
|
|
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 365
|
|
.line 366
|
|
.line 367
|
|
goto :goto_3
|
|
|
|
.line 368
|
|
:goto_2
|
|
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 369
|
|
.line 370
|
|
.line 371
|
|
throw p1
|
|
|
|
.line 372
|
|
:cond_4
|
|
:goto_3
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabTextColor:I
|
|
|
|
.line 373
|
|
.line 374
|
|
invoke-virtual {v1, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 375
|
|
.line 376
|
|
.line 377
|
|
move-result v2
|
|
|
|
.line 378
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 379
|
|
.line 380
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabTextColor:I
|
|
|
|
.line 381
|
|
.line 382
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 383
|
|
.line 384
|
|
.line 385
|
|
move-result-object v2
|
|
|
|
.line 386
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 387
|
|
.line 388
|
|
:cond_5
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabSelectedTextColor:I
|
|
|
|
.line 389
|
|
.line 390
|
|
invoke-virtual {v1, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 391
|
|
.line 392
|
|
.line 393
|
|
move-result v2
|
|
|
|
.line 394
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 395
|
|
.line 396
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabSelectedTextColor:I
|
|
|
|
.line 397
|
|
.line 398
|
|
invoke-virtual {v1, v2, v6}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
.line 399
|
|
.line 400
|
|
.line 401
|
|
move-result v2
|
|
|
|
.line 402
|
|
iget-object v5, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 403
|
|
.line 404
|
|
invoke-virtual {v5}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
.line 405
|
|
.line 406
|
|
.line 407
|
|
move-result v5
|
|
|
|
.line 408
|
|
new-array v4, v4, [[I
|
|
|
|
.line 409
|
|
.line 410
|
|
aput-object v8, v4, v6
|
|
|
|
.line 411
|
|
.line 412
|
|
aput-object v7, v4, v3
|
|
|
|
.line 413
|
|
.line 414
|
|
filled-new-array {v2, v5}, [I
|
|
|
|
.line 415
|
|
.line 416
|
|
.line 417
|
|
move-result-object v2
|
|
|
|
.line 418
|
|
new-instance v5, Landroid/content/res/ColorStateList;
|
|
|
|
.line 419
|
|
.line 420
|
|
invoke-direct {v5, v4, v2}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
|
|
|
|
.line 421
|
|
.line 422
|
|
.line 423
|
|
iput-object v5, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 424
|
|
.line 425
|
|
:cond_6
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIconTint:I
|
|
|
|
.line 426
|
|
.line 427
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 428
|
|
.line 429
|
|
.line 430
|
|
move-result-object v2
|
|
|
|
.line 431
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->q:Landroid/content/res/ColorStateList;
|
|
|
|
.line 432
|
|
.line 433
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIconTintMode:I
|
|
|
|
.line 434
|
|
.line 435
|
|
invoke-virtual {v1, v2, p1}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 436
|
|
.line 437
|
|
.line 438
|
|
move-result v2
|
|
|
|
.line 439
|
|
const/4 v4, 0x0
|
|
|
|
.line 440
|
|
invoke-static {v2, v4}, Lcom/google/android/material/internal/ViewUtils;->c(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 441
|
|
.line 442
|
|
.line 443
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabRippleColor:I
|
|
|
|
.line 444
|
|
.line 445
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 446
|
|
.line 447
|
|
.line 448
|
|
move-result-object v2
|
|
|
|
.line 449
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->r:Landroid/content/res/ColorStateList;
|
|
|
|
.line 450
|
|
.line 451
|
|
sget v2, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorAnimationDuration:I
|
|
|
|
.line 452
|
|
.line 453
|
|
const/16 v4, 0x12c
|
|
|
|
.line 454
|
|
.line 455
|
|
invoke-virtual {v1, v2, v4}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 456
|
|
.line 457
|
|
.line 458
|
|
move-result v2
|
|
|
|
.line 459
|
|
iput v2, p0, Lcom/google/android/material/tabs/TabLayout;->E:I
|
|
|
|
.line 460
|
|
.line 461
|
|
sget v2, Lcom/google/android/material/R$attr;->motionEasingEmphasizedInterpolator:I
|
|
|
|
.line 462
|
|
.line 463
|
|
sget-object v4, Lcom/google/android/material/animation/AnimationUtils;->b:Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;
|
|
|
|
.line 464
|
|
.line 465
|
|
invoke-static {v0, v2, v4}, Lcom/google/android/material/motion/MotionUtils;->d(Landroid/content/Context;ILandroid/animation/TimeInterpolator;)Landroid/animation/TimeInterpolator;
|
|
|
|
.line 466
|
|
.line 467
|
|
.line 468
|
|
move-result-object v0
|
|
|
|
.line 469
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->N:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 470
|
|
.line 471
|
|
sget v0, Lcom/google/android/material/R$styleable;->TabLayout_tabMinWidth:I
|
|
|
|
.line 472
|
|
.line 473
|
|
invoke-virtual {v1, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 474
|
|
.line 475
|
|
.line 476
|
|
move-result v0
|
|
|
|
.line 477
|
|
iput v0, p0, Lcom/google/android/material/tabs/TabLayout;->z:I
|
|
|
|
.line 478
|
|
.line 479
|
|
sget v0, Lcom/google/android/material/R$styleable;->TabLayout_tabMaxWidth:I
|
|
|
|
.line 480
|
|
.line 481
|
|
invoke-virtual {v1, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 482
|
|
.line 483
|
|
.line 484
|
|
move-result p1
|
|
|
|
.line 485
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->A:I
|
|
|
|
.line 486
|
|
.line 487
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabBackground:I
|
|
|
|
.line 488
|
|
.line 489
|
|
invoke-virtual {v1, p1, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 490
|
|
.line 491
|
|
.line 492
|
|
move-result p1
|
|
|
|
.line 493
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->x:I
|
|
|
|
.line 494
|
|
.line 495
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabContentStart:I
|
|
|
|
.line 496
|
|
.line 497
|
|
invoke-virtual {v1, p1, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
.line 498
|
|
.line 499
|
|
.line 500
|
|
move-result p1
|
|
|
|
.line 501
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->C:I
|
|
|
|
.line 502
|
|
.line 503
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabMode:I
|
|
|
|
.line 504
|
|
.line 505
|
|
invoke-virtual {v1, p1, v3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 506
|
|
.line 507
|
|
.line 508
|
|
move-result p1
|
|
|
|
.line 509
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 510
|
|
.line 511
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabGravity:I
|
|
|
|
.line 512
|
|
.line 513
|
|
invoke-virtual {v1, p1, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
.line 514
|
|
.line 515
|
|
.line 516
|
|
move-result p1
|
|
|
|
.line 517
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 518
|
|
.line 519
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabInlineLabel:I
|
|
|
|
.line 520
|
|
.line 521
|
|
invoke-virtual {v1, p1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 522
|
|
.line 523
|
|
.line 524
|
|
move-result p1
|
|
|
|
.line 525
|
|
iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->H:Z
|
|
|
|
.line 526
|
|
.line 527
|
|
sget p1, Lcom/google/android/material/R$styleable;->TabLayout_tabUnboundedRipple:I
|
|
|
|
.line 528
|
|
.line 529
|
|
invoke-virtual {v1, p1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 530
|
|
.line 531
|
|
.line 532
|
|
move-result p1
|
|
|
|
.line 533
|
|
iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->L:Z
|
|
|
|
.line 534
|
|
.line 535
|
|
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 536
|
|
.line 537
|
|
.line 538
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 539
|
|
.line 540
|
|
.line 541
|
|
move-result-object p1
|
|
|
|
.line 542
|
|
sget v0, Lcom/google/android/material/R$dimen;->design_tab_text_size_2line:I
|
|
|
|
.line 543
|
|
.line 544
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 545
|
|
.line 546
|
|
.line 547
|
|
move-result v0
|
|
|
|
.line 548
|
|
int-to-float v0, v0
|
|
|
|
.line 549
|
|
iput v0, p0, Lcom/google/android/material/tabs/TabLayout;->w:F
|
|
|
|
.line 550
|
|
.line 551
|
|
sget v0, Lcom/google/android/material/R$dimen;->design_tab_scrollable_min_width:I
|
|
|
|
.line 552
|
|
.line 553
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 554
|
|
.line 555
|
|
.line 556
|
|
move-result p1
|
|
|
|
.line 557
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->B:I
|
|
|
|
.line 558
|
|
.line 559
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->d()V
|
|
|
|
.line 560
|
|
.line 561
|
|
.line 562
|
|
return-void
|
|
|
|
.line 563
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
.line 564
|
|
move-object p1, v0
|
|
|
|
.line 565
|
|
invoke-virtual {v4}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 566
|
|
.line 567
|
|
.line 568
|
|
throw p1
|
|
.end method
|
|
|
|
.method private getDefaultHeight()I
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
const/4 v2, 0x0
|
|
|
|
.line 8
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v3
|
|
|
|
.line 14
|
|
check-cast v3, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 15
|
|
.line 16
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 17
|
|
.line 18
|
|
goto :goto_0
|
|
|
|
.line 19
|
|
:cond_0
|
|
const/16 v0, 0x30
|
|
|
|
.line 20
|
|
.line 21
|
|
return v0
|
|
.end method
|
|
|
|
.method private getTabMinWidth()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, -0x1
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->z:I
|
|
|
|
.line 3
|
|
.line 4
|
|
if-eq v1, v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v1, 0x2
|
|
|
|
.line 12
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
goto :goto_0
|
|
|
|
.line 15
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 16
|
|
return v0
|
|
|
|
.line 17
|
|
:cond_2
|
|
:goto_0
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->B:I
|
|
|
|
.line 18
|
|
.line 19
|
|
return v0
|
|
.end method
|
|
|
|
.method private getTabScrollRange()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v1
|
|
|
|
.line 11
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v1
|
|
|
|
.line 16
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v1
|
|
|
|
.line 21
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 22
|
|
const/4 v1, 0x0
|
|
|
|
.line 23
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v0
|
|
|
|
.line 27
|
|
return v0
|
|
.end method
|
|
|
|
.method private setSelectedTabView(I)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
if-ge p1, v1, :cond_8
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v2, 0x0
|
|
|
|
.line 10
|
|
move v3, v2
|
|
|
|
.line 11
|
|
:goto_0
|
|
if-ge v3, v1, :cond_8
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v4
|
|
|
|
.line 17
|
|
const/4 v5, 0x1
|
|
|
|
.line 18
|
|
if-ne v3, p1, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v4}, Landroid/view/View;->isSelected()Z
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result v6
|
|
|
|
.line 24
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
:cond_0
|
|
if-eq v3, p1, :cond_4
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v4}, Landroid/view/View;->isSelected()Z
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v6
|
|
|
|
.line 32
|
|
if-eqz v6, :cond_4
|
|
|
|
.line 33
|
|
.line 34
|
|
:cond_1
|
|
if-ne v3, p1, :cond_2
|
|
|
|
.line 35
|
|
.line 36
|
|
move v6, v5
|
|
|
|
.line 37
|
|
goto :goto_1
|
|
|
|
.line 38
|
|
:cond_2
|
|
move v6, v2
|
|
|
|
.line 39
|
|
:goto_1
|
|
invoke-virtual {v4, v6}, Landroid/view/View;->setSelected(Z)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
if-ne v3, p1, :cond_3
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_2
|
|
|
|
.line 45
|
|
:cond_3
|
|
move v5, v2
|
|
|
|
.line 46
|
|
:goto_2
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setActivated(Z)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
instance-of v5, v4, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 50
|
|
.line 51
|
|
if-eqz v5, :cond_7
|
|
|
|
.line 52
|
|
.line 53
|
|
check-cast v4, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-virtual {v4}, Lcom/google/android/material/tabs/TabLayout$TabView;->f()V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
goto :goto_5
|
|
|
|
.line 59
|
|
:cond_4
|
|
if-ne v3, p1, :cond_5
|
|
|
|
.line 60
|
|
.line 61
|
|
move v6, v5
|
|
|
|
.line 62
|
|
goto :goto_3
|
|
|
|
.line 63
|
|
:cond_5
|
|
move v6, v2
|
|
|
|
.line 64
|
|
:goto_3
|
|
invoke-virtual {v4, v6}, Landroid/view/View;->setSelected(Z)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
if-ne v3, p1, :cond_6
|
|
|
|
.line 68
|
|
.line 69
|
|
goto :goto_4
|
|
|
|
.line 70
|
|
:cond_6
|
|
move v5, v2
|
|
|
|
.line 71
|
|
:goto_4
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setActivated(Z)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
:cond_7
|
|
:goto_5
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 75
|
|
.line 76
|
|
goto :goto_0
|
|
|
|
.line 77
|
|
:cond_8
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
iget-object v2, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->d:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-ne v2, p0, :cond_5
|
|
|
|
.line 10
|
|
.line 11
|
|
iput v1, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, v1, p1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v2
|
|
|
|
.line 20
|
|
const/4 v3, 0x1
|
|
|
|
.line 21
|
|
add-int/2addr v1, v3
|
|
|
|
.line 22
|
|
const/4 v4, -0x1
|
|
|
|
.line 23
|
|
move v5, v4
|
|
|
|
.line 24
|
|
:goto_0
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v6
|
|
|
|
.line 30
|
|
check-cast v6, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 31
|
|
.line 32
|
|
iget v6, v6, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 33
|
|
.line 34
|
|
iget v7, p0, Lcom/google/android/material/tabs/TabLayout;->c:I
|
|
|
|
.line 35
|
|
.line 36
|
|
if-ne v6, v7, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
move v5, v1
|
|
|
|
.line 39
|
|
:cond_0
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result-object v6
|
|
|
|
.line 43
|
|
check-cast v6, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 44
|
|
.line 45
|
|
iput v1, v6, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 46
|
|
.line 47
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 48
|
|
.line 49
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_1
|
|
iput v5, p0, Lcom/google/android/material/tabs/TabLayout;->c:I
|
|
|
|
.line 51
|
|
.line 52
|
|
iget-object v0, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 53
|
|
.line 54
|
|
const/4 v1, 0x0
|
|
|
|
.line 55
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->setSelected(Z)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setActivated(Z)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
iget v2, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 62
|
|
.line 63
|
|
new-instance v5, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 64
|
|
.line 65
|
|
const/4 v6, -0x2
|
|
|
|
.line 66
|
|
invoke-direct {v5, v6, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
iget v4, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 70
|
|
.line 71
|
|
if-ne v4, v3, :cond_2
|
|
|
|
.line 72
|
|
.line 73
|
|
iget v4, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 74
|
|
.line 75
|
|
if-nez v4, :cond_2
|
|
|
|
.line 76
|
|
.line 77
|
|
iput v1, v5, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
.line 78
|
|
.line 79
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 80
|
|
.line 81
|
|
iput v1, v5, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 82
|
|
.line 83
|
|
goto :goto_1
|
|
|
|
.line 84
|
|
:cond_2
|
|
iput v6, v5, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
.line 85
|
|
.line 86
|
|
const/4 v1, 0x0
|
|
|
|
.line 87
|
|
iput v1, v5, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 88
|
|
.line 89
|
|
:goto_1
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 90
|
|
.line 91
|
|
invoke-virtual {v1, v0, v2, v5}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 95
|
|
.line 96
|
|
iget-object p2, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->d:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 97
|
|
.line 98
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {p2, p1, v3}, Lcom/google/android/material/tabs/TabLayout;->k(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
return-void
|
|
|
|
.line 104
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 105
|
|
.line 106
|
|
const-string p2, "Tab not attached to a TabLayout"
|
|
|
|
.line 107
|
|
.line 108
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
throw p1
|
|
|
|
.line 112
|
|
:cond_4
|
|
return-void
|
|
|
|
.line 113
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 114
|
|
.line 115
|
|
const-string p2, "Tab belongs to a different TabLayout."
|
|
|
|
.line 116
|
|
.line 117
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 118
|
|
.line 119
|
|
.line 120
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final addView(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->b(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final addView(Landroid/view/View;I)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->b(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->b(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->b(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/android/material/tabs/TabItem;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
check-cast p1, Lcom/google/android/material/tabs/TabItem;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->h()Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v1
|
|
|
|
.line 15
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v1
|
|
|
|
.line 19
|
|
if-nez v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p1}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p1
|
|
|
|
.line 25
|
|
iput-object p1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->a:Ljava/lang/CharSequence;
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object p1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 28
|
|
.line 29
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$TabView;->d()V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result p1
|
|
|
|
.line 40
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/android/material/tabs/TabLayout;->a(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
return-void
|
|
|
|
.line 44
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 45
|
|
.line 46
|
|
const-string v0, "Only TabItem instances can be added to TabLayout"
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final c(I)V
|
|
.locals 9
|
|
|
|
.line 1
|
|
const/4 v0, -0x1
|
|
|
|
.line 2
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->isLaidOut()Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v1
|
|
|
|
.line 23
|
|
const/4 v2, 0x0
|
|
|
|
.line 24
|
|
:goto_0
|
|
if-ge v2, v1, :cond_2
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v3
|
|
|
|
.line 30
|
|
invoke-virtual {v3}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v3
|
|
|
|
.line 34
|
|
if-gtz v3, :cond_1
|
|
|
|
.line 35
|
|
.line 36
|
|
goto :goto_1
|
|
|
|
.line 37
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 38
|
|
.line 39
|
|
goto :goto_0
|
|
|
|
.line 40
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/View;->getScrollX()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v1
|
|
|
|
.line 44
|
|
const/4 v2, 0x0
|
|
|
|
.line 45
|
|
invoke-virtual {p0, v2, p1}, Lcom/google/android/material/tabs/TabLayout;->e(FI)I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v2
|
|
|
|
.line 49
|
|
if-eq v1, v2, :cond_3
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->f()V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 55
|
|
.line 56
|
|
filled-new-array {v1, v2}, [I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v1
|
|
|
|
.line 60
|
|
invoke-virtual {v3, v1}, Landroid/animation/ValueAnimator;->setIntValues([I)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
:cond_3
|
|
iget-object v1, v0, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->c:Landroid/animation/ValueAnimator;
|
|
|
|
.line 69
|
|
.line 70
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v1}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result v1
|
|
|
|
.line 76
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 77
|
|
.line 78
|
|
iget-object v1, v0, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->f:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 79
|
|
.line 80
|
|
iget v1, v1, Lcom/google/android/material/tabs/TabLayout;->c:I
|
|
|
|
.line 81
|
|
.line 82
|
|
if-eq v1, p1, :cond_4
|
|
|
|
.line 83
|
|
.line 84
|
|
iget-object v1, v0, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->c:Landroid/animation/ValueAnimator;
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
:cond_4
|
|
iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->E:I
|
|
|
|
.line 90
|
|
.line 91
|
|
const/4 v2, 0x1
|
|
|
|
.line 92
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->d(IIZ)V
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
return-void
|
|
|
|
.line 96
|
|
:cond_5
|
|
:goto_1
|
|
const/4 v7, 0x1
|
|
|
|
.line 97
|
|
const/4 v8, 0x1
|
|
|
|
.line 98
|
|
const/4 v5, 0x0
|
|
|
|
.line 99
|
|
const/4 v6, 0x1
|
|
|
|
.line 100
|
|
move-object v3, p0
|
|
|
|
.line 101
|
|
move v4, p1
|
|
|
|
.line 102
|
|
invoke-virtual/range {v3 .. v8}, Lcom/google/android/material/tabs/TabLayout;->m(IFZZZ)V
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x2
|
|
|
|
.line 4
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 11
|
|
goto :goto_1
|
|
|
|
.line 12
|
|
:cond_1
|
|
:goto_0
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->C:I
|
|
|
|
.line 13
|
|
.line 14
|
|
iget v3, p0, Lcom/google/android/material/tabs/TabLayout;->i:I
|
|
|
|
.line 15
|
|
.line 16
|
|
sub-int/2addr v0, v3
|
|
|
|
.line 17
|
|
invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v0
|
|
|
|
.line 21
|
|
:goto_1
|
|
iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v3, v0, v2, v2, v2}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 27
|
|
.line 28
|
|
const-string v2, "TabLayout"
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v4, 0x1
|
|
|
|
.line 31
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 32
|
|
.line 33
|
|
if-eq v0, v4, :cond_2
|
|
|
|
.line 34
|
|
.line 35
|
|
if-eq v0, v1, :cond_2
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_2
|
|
|
|
.line 38
|
|
:cond_2
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 39
|
|
.line 40
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 41
|
|
.line 42
|
|
const-string v0, "GRAVITY_START is not supported with the current tab mode, GRAVITY_CENTER will be used instead"
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-static {v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
:cond_3
|
|
invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setGravity(I)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
goto :goto_2
|
|
|
|
.line 51
|
|
:cond_4
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 52
|
|
.line 53
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 54
|
|
.line 55
|
|
if-eq v0, v4, :cond_5
|
|
|
|
.line 56
|
|
.line 57
|
|
if-eq v0, v1, :cond_7
|
|
|
|
.line 58
|
|
.line 59
|
|
goto :goto_2
|
|
|
|
.line 60
|
|
:cond_5
|
|
invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->setGravity(I)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
goto :goto_2
|
|
|
|
.line 64
|
|
:cond_6
|
|
const-string v0, "MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead"
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-static {v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
:cond_7
|
|
const v0, 0x800003
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v3, v0}, Landroid/widget/LinearLayout;->setGravity(I)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
:goto_2
|
|
invoke-virtual {p0, v4}, Lcom/google/android/material/tabs/TabLayout;->o(Z)V
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e(FI)I
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
const/4 v2, 0x2
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
return v1
|
|
|
|
.line 11
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v3
|
|
|
|
.line 17
|
|
if-nez v3, :cond_2
|
|
|
|
.line 18
|
|
.line 19
|
|
return v1
|
|
|
|
.line 20
|
|
:cond_2
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v4
|
|
|
|
.line 26
|
|
if-ge p2, v4, :cond_3
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p2
|
|
|
|
.line 32
|
|
goto :goto_1
|
|
|
|
.line 33
|
|
:cond_3
|
|
const/4 p2, 0x0
|
|
|
|
.line 34
|
|
:goto_1
|
|
invoke-virtual {v3}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v0
|
|
|
|
.line 38
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p2}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v1
|
|
|
|
.line 44
|
|
:cond_4
|
|
invoke-virtual {v3}, Landroid/view/View;->getLeft()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result p2
|
|
|
|
.line 48
|
|
div-int/lit8 v3, v0, 0x2
|
|
|
|
.line 49
|
|
.line 50
|
|
add-int/2addr v3, p2
|
|
|
|
.line 51
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result p2
|
|
|
|
.line 55
|
|
div-int/2addr p2, v2
|
|
|
|
.line 56
|
|
sub-int/2addr v3, p2
|
|
|
|
.line 57
|
|
add-int/2addr v0, v1
|
|
|
|
.line 58
|
|
int-to-float p2, v0
|
|
|
|
.line 59
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
.line 60
|
|
.line 61
|
|
mul-float/2addr p2, v0
|
|
|
|
.line 62
|
|
mul-float/2addr p2, p1
|
|
|
|
.line 63
|
|
float-to-int p1, p2
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result p2
|
|
|
|
.line 68
|
|
if-nez p2, :cond_5
|
|
|
|
.line 69
|
|
.line 70
|
|
add-int/2addr v3, p1
|
|
|
|
.line 71
|
|
return v3
|
|
|
|
.line 72
|
|
:cond_5
|
|
sub-int/2addr v3, p1
|
|
|
|
.line 73
|
|
return v3
|
|
.end method
|
|
|
|
.method public final f()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Landroid/animation/ValueAnimator;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0}, Landroid/animation/ValueAnimator;-><init>()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->N:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->E:I
|
|
|
|
.line 20
|
|
.line 21
|
|
int-to-long v1, v1
|
|
|
|
.line 22
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 26
|
|
.line 27
|
|
new-instance v1, Lcom/google/android/material/tabs/TabLayout$1;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/tabs/TabLayout$1;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g(I)Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
.locals 1
|
|
|
|
.line 1
|
|
if-ltz p1, :cond_1
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
check-cast p1, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 17
|
|
.line 18
|
|
return-object p1
|
|
|
|
.line 19
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 20
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->generateDefaultLayoutParams()Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->generateDefaultLayoutParams()Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getSelectedTabPosition()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->g:Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget v0, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v0, -0x1
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabGravity()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabIconTint()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->q:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTabIndicatorAnimationMode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->K:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabIndicatorGravity()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->F:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabMaxWidth()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->y:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabMode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTabRippleColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->r:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTabSelectedIndicator()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->s:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTabTextColors()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
.locals 5
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/android/material/tabs/TabLayout;->e0:Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/core/util/Pools$SynchronizedPool;->b()Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v1, -0x1
|
|
|
|
.line 10
|
|
if-nez v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
new-instance v0, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iput v1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 18
|
|
.line 19
|
|
iput v1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->f:I
|
|
|
|
.line 20
|
|
.line 21
|
|
:cond_0
|
|
iput-object p0, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->d:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v2, 0x0
|
|
|
|
.line 24
|
|
iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->c0:Landroidx/core/util/Pools$SimplePool;
|
|
|
|
.line 25
|
|
.line 26
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v3}, Landroidx/core/util/Pools$SimplePool;->b()Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v3
|
|
|
|
.line 32
|
|
check-cast v3, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 33
|
|
.line 34
|
|
goto :goto_0
|
|
|
|
.line 35
|
|
:cond_1
|
|
move-object v3, v2
|
|
|
|
.line 36
|
|
:goto_0
|
|
if-nez v3, :cond_2
|
|
|
|
.line 37
|
|
.line 38
|
|
new-instance v3, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v4
|
|
|
|
.line 44
|
|
invoke-direct {v3, p0, v4}, Lcom/google/android/material/tabs/TabLayout$TabView;-><init>(Lcom/google/android/material/tabs/TabLayout;Landroid/content/Context;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
:cond_2
|
|
invoke-virtual {v3, v0}, Lcom/google/android/material/tabs/TabLayout$TabView;->setTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
const/4 v4, 0x1
|
|
|
|
.line 51
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setFocusable(Z)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMinWidth()I
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result v4
|
|
|
|
.line 58
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setMinimumWidth(I)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
iget-object v4, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->a:Ljava/lang/CharSequence;
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result v4
|
|
|
|
.line 67
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {v3, v2}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
goto :goto_1
|
|
|
|
.line 73
|
|
:cond_3
|
|
iget-object v2, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->a:Ljava/lang/CharSequence;
|
|
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {v3, v2}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
:goto_1
|
|
iput-object v3, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 79
|
|
.line 80
|
|
iget v2, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->f:I
|
|
|
|
.line 81
|
|
.line 82
|
|
if-eq v2, v1, :cond_4
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-virtual {v3, v2}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->j()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->T:Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
move v1, v0
|
|
|
|
.line 10
|
|
:goto_0
|
|
const v2, 0x186a0
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
if-ge v1, v2, :cond_2
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->h()Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v2
|
|
|
|
.line 19
|
|
iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->T:Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iget-object v3, v2, Lcom/google/android/material/tabs/TabLayout$Tab;->a:Ljava/lang/CharSequence;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v3
|
|
|
|
.line 30
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 31
|
|
.line 32
|
|
const/4 v3, 0x0
|
|
|
|
.line 33
|
|
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result v4
|
|
|
|
.line 37
|
|
if-nez v4, :cond_0
|
|
|
|
.line 38
|
|
.line 39
|
|
iget-object v4, v2, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {v4, v3}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
:cond_0
|
|
iget-object v3, v2, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 45
|
|
.line 46
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {v3}, Lcom/google/android/material/tabs/TabLayout$TabView;->d()V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
:cond_1
|
|
invoke-virtual {p0, v2, v0}, Lcom/google/android/material/tabs/TabLayout;->a(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 55
|
|
.line 56
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 58
|
|
.line 59
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result v0
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v1
|
|
|
|
.line 69
|
|
if-eq v0, v1, :cond_3
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v1
|
|
|
|
.line 75
|
|
if-ge v0, v1, :cond_3
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->g(I)Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object v0
|
|
|
|
.line 81
|
|
const/4 v1, 0x1
|
|
|
|
.line 82
|
|
invoke-virtual {p0, v0, v1}, Lcom/google/android/material/tabs/TabLayout;->k(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final j()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
.line 8
|
|
.line 9
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
.line 10
|
|
if-ltz v1, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v3
|
|
|
|
.line 16
|
|
check-cast v3, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeViewAt(I)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v3, v2}, Lcom/google/android/material/tabs/TabLayout$TabView;->setTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
const/4 v2, 0x0
|
|
|
|
.line 27
|
|
invoke-virtual {v3, v2}, Lcom/google/android/material/tabs/TabLayout$TabView;->setSelected(Z)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->c0:Landroidx/core/util/Pools$SimplePool;
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v2, v3}, Landroidx/core/util/Pools$SimplePool;->a(Ljava/lang/Object;)Z
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
.line 39
|
|
.line 40
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v0
|
|
|
|
.line 47
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result v1
|
|
|
|
.line 51
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object v1
|
|
|
|
.line 57
|
|
check-cast v1, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
iput-object v2, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->d:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 63
|
|
.line 64
|
|
iput-object v2, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 65
|
|
.line 66
|
|
const/4 v3, -0x1
|
|
|
|
.line 67
|
|
iput v3, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->f:I
|
|
|
|
.line 68
|
|
.line 69
|
|
iput-object v2, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->a:Ljava/lang/CharSequence;
|
|
|
|
.line 70
|
|
.line 71
|
|
iput v3, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 72
|
|
.line 73
|
|
iput-object v2, v1, Lcom/google/android/material/tabs/TabLayout$Tab;->c:Landroid/view/View;
|
|
|
|
.line 74
|
|
.line 75
|
|
sget-object v3, Lcom/google/android/material/tabs/TabLayout;->e0:Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v3, v1}, Landroidx/core/util/Pools$SynchronizedPool;->a(Ljava/lang/Object;)Z
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
goto :goto_1
|
|
|
|
.line 81
|
|
:cond_2
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->g:Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 82
|
|
.line 83
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
|
|
.locals 10
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->g:Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->P:Ljava/util/ArrayList;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ne v0, p1, :cond_2
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p2
|
|
|
|
.line 13
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 14
|
|
.line 15
|
|
:goto_0
|
|
if-ltz p2, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v0
|
|
|
|
.line 21
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_0
|
|
iget p1, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->c(I)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
return-void
|
|
|
|
.line 35
|
|
:cond_1
|
|
move-object v4, p0
|
|
|
|
.line 36
|
|
goto/16 :goto_8
|
|
|
|
.line 37
|
|
.line 38
|
|
:cond_2
|
|
const/4 v2, -0x1
|
|
|
|
.line 39
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 40
|
|
.line 41
|
|
iget v3, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 42
|
|
.line 43
|
|
move v5, v3
|
|
|
|
.line 44
|
|
goto :goto_1
|
|
|
|
.line 45
|
|
:cond_3
|
|
move v5, v2
|
|
|
|
.line 46
|
|
:goto_1
|
|
if-eqz p2, :cond_6
|
|
|
|
.line 47
|
|
.line 48
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 49
|
|
.line 50
|
|
iget p2, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->b:I
|
|
|
|
.line 51
|
|
.line 52
|
|
if-ne p2, v2, :cond_4
|
|
|
|
.line 53
|
|
.line 54
|
|
goto :goto_2
|
|
|
|
.line 55
|
|
:cond_4
|
|
move-object v4, p0
|
|
|
|
.line 56
|
|
goto :goto_3
|
|
|
|
.line 57
|
|
:cond_5
|
|
:goto_2
|
|
if-eq v5, v2, :cond_4
|
|
|
|
.line 58
|
|
.line 59
|
|
const/4 v8, 0x1
|
|
|
|
.line 60
|
|
const/4 v9, 0x1
|
|
|
|
.line 61
|
|
const/4 v6, 0x0
|
|
|
|
.line 62
|
|
const/4 v7, 0x1
|
|
|
|
.line 63
|
|
move-object v4, p0
|
|
|
|
.line 64
|
|
invoke-virtual/range {v4 .. v9}, Lcom/google/android/material/tabs/TabLayout;->m(IFZZZ)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
goto :goto_4
|
|
|
|
.line 68
|
|
:goto_3
|
|
invoke-virtual {p0, v5}, Lcom/google/android/material/tabs/TabLayout;->c(I)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
:goto_4
|
|
if-eq v5, v2, :cond_7
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-direct {p0, v5}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabView(I)V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
goto :goto_5
|
|
|
|
.line 77
|
|
:cond_6
|
|
move-object v4, p0
|
|
|
|
.line 78
|
|
:cond_7
|
|
:goto_5
|
|
iput-object p1, v4, Lcom/google/android/material/tabs/TabLayout;->g:Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 79
|
|
.line 80
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 81
|
|
.line 82
|
|
iget-object p2, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->d:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 83
|
|
.line 84
|
|
if-eqz p2, :cond_8
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result p2
|
|
|
|
.line 90
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 91
|
|
.line 92
|
|
:goto_6
|
|
if-ltz p2, :cond_8
|
|
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
move-result-object v0
|
|
|
|
.line 98
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 104
|
|
.line 105
|
|
goto :goto_6
|
|
|
|
.line 106
|
|
:cond_8
|
|
if-eqz p1, :cond_9
|
|
|
|
.line 107
|
|
.line 108
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
move-result p2
|
|
|
|
.line 112
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 113
|
|
.line 114
|
|
:goto_7
|
|
if-ltz p2, :cond_9
|
|
|
|
.line 115
|
|
.line 116
|
|
invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
move-result-object v0
|
|
|
|
.line 120
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-interface {v0, p1}, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;->a(Lcom/google/android/material/tabs/TabLayout$Tab;)V
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
.line 126
|
|
.line 127
|
|
goto :goto_7
|
|
|
|
.line 128
|
|
:cond_9
|
|
:goto_8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final l(Landroidx/viewpager/widget/PagerAdapter;Z)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->T:Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->U:Landroid/database/DataSetObserver;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Landroidx/viewpager/widget/PagerAdapter;->a:Landroid/database/DataSetObservable;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, v1}, Landroid/database/Observable;->unregisterObserver(Ljava/lang/Object;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->T:Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->U:Landroid/database/DataSetObserver;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-nez p2, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
new-instance p2, Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {p2, p0}, Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iput-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->U:Landroid/database/DataSetObserver;
|
|
|
|
.line 30
|
|
.line 31
|
|
:cond_1
|
|
iget-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->U:Landroid/database/DataSetObserver;
|
|
|
|
.line 32
|
|
.line 33
|
|
iget-object p1, p1, Landroidx/viewpager/widget/PagerAdapter;->a:Landroid/database/DataSetObservable;
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {p1, p2}, Landroid/database/Observable;->registerObserver(Ljava/lang/Object;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->i()V
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
return-void
|
|
.end method
|
|
|
|
.method public final m(IFZZZ)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
int-to-float v0, p1
|
|
|
|
.line 2
|
|
add-float/2addr v0, p2
|
|
|
|
.line 3
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
if-ltz v1, :cond_10
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v3
|
|
|
|
.line 15
|
|
if-lt v1, v3, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
goto/16 :goto_2
|
|
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
if-eqz p4, :cond_2
|
|
|
|
.line 20
|
|
.line 21
|
|
iget-object p4, v2, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->f:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v0
|
|
|
|
.line 27
|
|
iput v0, p4, Lcom/google/android/material/tabs/TabLayout;->c:I
|
|
|
|
.line 28
|
|
.line 29
|
|
iget-object p4, v2, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->c:Landroid/animation/ValueAnimator;
|
|
|
|
.line 30
|
|
.line 31
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {p4}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result p4
|
|
|
|
.line 37
|
|
if-eqz p4, :cond_1
|
|
|
|
.line 38
|
|
.line 39
|
|
iget-object p4, v2, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->c:Landroid/animation/ValueAnimator;
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {p4}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
:cond_1
|
|
invoke-virtual {v2, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object p4
|
|
|
|
.line 48
|
|
add-int/lit8 v0, p1, 0x1
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v0
|
|
|
|
.line 54
|
|
invoke-virtual {v2, p4, v0, p2}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->c(Landroid/view/View;Landroid/view/View;F)V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
:cond_2
|
|
iget-object p4, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 58
|
|
.line 59
|
|
if-eqz p4, :cond_3
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {p4}, Landroid/animation/ValueAnimator;->isRunning()Z
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result p4
|
|
|
|
.line 65
|
|
if-eqz p4, :cond_3
|
|
|
|
.line 66
|
|
.line 67
|
|
iget-object p4, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {p4}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
:cond_3
|
|
invoke-virtual {p0, p2, p1}, Lcom/google/android/material/tabs/TabLayout;->e(FI)I
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result p2
|
|
|
|
.line 76
|
|
invoke-virtual {p0}, Landroid/view/View;->getScrollX()I
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result p4
|
|
|
|
.line 80
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result v0
|
|
|
|
.line 84
|
|
const/4 v2, 0x0
|
|
|
|
.line 85
|
|
const/4 v3, 0x1
|
|
|
|
.line 86
|
|
if-ge p1, v0, :cond_4
|
|
|
|
.line 87
|
|
.line 88
|
|
if-ge p2, p4, :cond_6
|
|
|
|
.line 89
|
|
.line 90
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
move-result v0
|
|
|
|
.line 94
|
|
if-le p1, v0, :cond_5
|
|
|
|
.line 95
|
|
.line 96
|
|
if-le p2, p4, :cond_6
|
|
|
|
.line 97
|
|
.line 98
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 99
|
|
.line 100
|
|
.line 101
|
|
move-result v0
|
|
|
|
.line 102
|
|
if-ne p1, v0, :cond_7
|
|
|
|
.line 103
|
|
.line 104
|
|
:cond_6
|
|
move v0, v3
|
|
|
|
.line 105
|
|
goto :goto_0
|
|
|
|
.line 106
|
|
:cond_7
|
|
move v0, v2
|
|
|
|
.line 107
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v4
|
|
|
|
.line 111
|
|
if-ne v4, v3, :cond_c
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
move-result v0
|
|
|
|
.line 117
|
|
if-ge p1, v0, :cond_8
|
|
|
|
.line 118
|
|
.line 119
|
|
if-le p2, p4, :cond_a
|
|
|
|
.line 120
|
|
.line 121
|
|
:cond_8
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 122
|
|
.line 123
|
|
.line 124
|
|
move-result v0
|
|
|
|
.line 125
|
|
if-le p1, v0, :cond_9
|
|
|
|
.line 126
|
|
.line 127
|
|
if-ge p2, p4, :cond_a
|
|
|
|
.line 128
|
|
.line 129
|
|
:cond_9
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 130
|
|
.line 131
|
|
.line 132
|
|
move-result p4
|
|
|
|
.line 133
|
|
if-ne p1, p4, :cond_b
|
|
|
|
.line 134
|
|
.line 135
|
|
:cond_a
|
|
move v0, v3
|
|
|
|
.line 136
|
|
goto :goto_1
|
|
|
|
.line 137
|
|
:cond_b
|
|
move v0, v2
|
|
|
|
.line 138
|
|
:cond_c
|
|
:goto_1
|
|
if-nez v0, :cond_d
|
|
|
|
.line 139
|
|
.line 140
|
|
iget p4, p0, Lcom/google/android/material/tabs/TabLayout;->b0:I
|
|
|
|
.line 141
|
|
.line 142
|
|
if-eq p4, v3, :cond_d
|
|
|
|
.line 143
|
|
.line 144
|
|
if-eqz p5, :cond_f
|
|
|
|
.line 145
|
|
.line 146
|
|
:cond_d
|
|
if-gez p1, :cond_e
|
|
|
|
.line 147
|
|
.line 148
|
|
move p2, v2
|
|
|
|
.line 149
|
|
:cond_e
|
|
invoke-virtual {p0, p2, v2}, Landroid/view/View;->scrollTo(II)V
|
|
|
|
.line 150
|
|
.line 151
|
|
.line 152
|
|
:cond_f
|
|
if-eqz p3, :cond_10
|
|
|
|
.line 153
|
|
.line 154
|
|
invoke-direct {p0, v1}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabView(I)V
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
:cond_10
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n(Landroidx/viewpager/widget/ViewPager;Z)V
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->V:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, v0, Landroidx/viewpager/widget/ViewPager;->V:Ljava/util/ArrayList;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->W:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, v1, Landroidx/viewpager/widget/ViewPager;->a0:Ljava/util/ArrayList;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->Q:Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
|
|
|
|
.line 30
|
|
.line 31
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->P:Ljava/util/ArrayList;
|
|
|
|
.line 32
|
|
.line 33
|
|
const/4 v2, 0x0
|
|
|
|
.line 34
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->Q:Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
|
|
|
|
.line 40
|
|
.line 41
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
.line 42
|
|
if-eqz p1, :cond_9
|
|
|
|
.line 43
|
|
.line 44
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 45
|
|
.line 46
|
|
iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->V:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.line 47
|
|
.line 48
|
|
if-nez v2, :cond_3
|
|
|
|
.line 49
|
|
.line 50
|
|
new-instance v2, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-direct {v2, p0}, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
iput-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->V:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.line 56
|
|
.line 57
|
|
:cond_3
|
|
iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->V:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
|
|
|
|
.line 58
|
|
.line 59
|
|
iput v0, v2, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;->c:I
|
|
|
|
.line 60
|
|
.line 61
|
|
iput v0, v2, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;->b:I
|
|
|
|
.line 62
|
|
.line 63
|
|
iget-object v0, p1, Landroidx/viewpager/widget/ViewPager;->V:Ljava/util/ArrayList;
|
|
|
|
.line 64
|
|
.line 65
|
|
if-nez v0, :cond_4
|
|
|
|
.line 66
|
|
.line 67
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
iput-object v0, p1, Landroidx/viewpager/widget/ViewPager;->V:Ljava/util/ArrayList;
|
|
|
|
.line 73
|
|
.line 74
|
|
:cond_4
|
|
iget-object v0, p1, Landroidx/viewpager/widget/ViewPager;->V:Ljava/util/ArrayList;
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
new-instance v0, Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
|
|
|
|
.line 80
|
|
.line 81
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;-><init>(Landroidx/viewpager/widget/ViewPager;)V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->Q:Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result v2
|
|
|
|
.line 90
|
|
if-nez v2, :cond_5
|
|
|
|
.line 91
|
|
.line 92
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
:cond_5
|
|
invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result-object v0
|
|
|
|
.line 99
|
|
const/4 v1, 0x1
|
|
|
|
.line 100
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 101
|
|
.line 102
|
|
invoke-virtual {p0, v0, v1}, Lcom/google/android/material/tabs/TabLayout;->l(Landroidx/viewpager/widget/PagerAdapter;Z)V
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->W:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.line 106
|
|
.line 107
|
|
if-nez v0, :cond_7
|
|
|
|
.line 108
|
|
.line 109
|
|
new-instance v0, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.line 110
|
|
.line 111
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->W:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.line 115
|
|
.line 116
|
|
:cond_7
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->W:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
|
|
|
|
.line 117
|
|
.line 118
|
|
iput-boolean v1, v0, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;->a:Z
|
|
|
|
.line 119
|
|
.line 120
|
|
iget-object v1, p1, Landroidx/viewpager/widget/ViewPager;->a0:Ljava/util/ArrayList;
|
|
|
|
.line 121
|
|
.line 122
|
|
if-nez v1, :cond_8
|
|
|
|
.line 123
|
|
.line 124
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 125
|
|
.line 126
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 127
|
|
.line 128
|
|
.line 129
|
|
iput-object v1, p1, Landroidx/viewpager/widget/ViewPager;->a0:Ljava/util/ArrayList;
|
|
|
|
.line 130
|
|
.line 131
|
|
:cond_8
|
|
iget-object v1, p1, Landroidx/viewpager/widget/ViewPager;->a0:Ljava/util/ArrayList;
|
|
|
|
.line 132
|
|
.line 133
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 134
|
|
.line 135
|
|
.line 136
|
|
invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
|
|
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
move-result v3
|
|
|
|
.line 140
|
|
const/4 v6, 0x1
|
|
|
|
.line 141
|
|
const/4 v7, 0x1
|
|
|
|
.line 142
|
|
const/4 v4, 0x0
|
|
|
|
.line 143
|
|
const/4 v5, 0x1
|
|
|
|
.line 144
|
|
move-object v2, p0
|
|
|
|
.line 145
|
|
invoke-virtual/range {v2 .. v7}, Lcom/google/android/material/tabs/TabLayout;->m(IFZZZ)V
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
move-object p1, v2
|
|
|
|
.line 149
|
|
goto :goto_0
|
|
|
|
.line 150
|
|
:cond_9
|
|
move-object p1, p0
|
|
|
|
.line 151
|
|
iput-object v2, p1, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 152
|
|
.line 153
|
|
invoke-virtual {p0, v2, v0}, Lcom/google/android/material/tabs/TabLayout;->l(Landroidx/viewpager/widget/PagerAdapter;Z)V
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
:goto_0
|
|
iput-boolean p2, p1, Lcom/google/android/material/tabs/TabLayout;->a0:Z
|
|
|
|
.line 157
|
|
.line 158
|
|
return-void
|
|
.end method
|
|
|
|
.method public final o(Z)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
move v1, v0
|
|
|
|
.line 3
|
|
:goto_0
|
|
iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v3
|
|
|
|
.line 9
|
|
if-ge v1, v3, :cond_2
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v2
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMinWidth()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v3
|
|
|
|
.line 19
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setMinimumWidth(I)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v3
|
|
|
|
.line 26
|
|
check-cast v3, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 27
|
|
.line 28
|
|
iget v4, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v5, 0x1
|
|
|
|
.line 31
|
|
if-ne v4, v5, :cond_0
|
|
|
|
.line 32
|
|
.line 33
|
|
iget v4, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 34
|
|
.line 35
|
|
if-nez v4, :cond_0
|
|
|
|
.line 36
|
|
.line 37
|
|
iput v0, v3, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
.line 38
|
|
.line 39
|
|
const/high16 v4, 0x3f800000 # 1.0f
|
|
|
|
.line 40
|
|
.line 41
|
|
iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 42
|
|
.line 43
|
|
goto :goto_1
|
|
|
|
.line 44
|
|
:cond_0
|
|
const/4 v4, -0x2
|
|
|
|
.line 45
|
|
iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
.line 46
|
|
.line 47
|
|
const/4 v4, 0x0
|
|
|
|
.line 48
|
|
iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 49
|
|
.line 50
|
|
:goto_1
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {v2}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 56
|
|
.line 57
|
|
goto :goto_0
|
|
|
|
.line 58
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-static {p0}, Lcom/google/android/material/shape/MaterialShapeUtils;->d(Landroid/view/ViewGroup;)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->S:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
instance-of v1, v0, Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
check-cast v0, Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v1, 0x1
|
|
|
|
.line 22
|
|
invoke-virtual {p0, v0, v1}, Lcom/google/android/material/tabs/TabLayout;->n(Landroidx/viewpager/widget/ViewPager;Z)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onDetachedFromWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->a0:Z
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
iput-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->a0:Z
|
|
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v2
|
|
|
|
.line 8
|
|
if-ge v0, v2, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v1
|
|
|
|
.line 14
|
|
instance-of v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
check-cast v1, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v1}, Landroid/view/View;->getLeft()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v3
|
|
|
|
.line 28
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v4
|
|
|
|
.line 32
|
|
invoke-virtual {v1}, Landroid/view/View;->getRight()I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result v5
|
|
|
|
.line 36
|
|
invoke-virtual {v1}, Landroid/view/View;->getBottom()I
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result v6
|
|
|
|
.line 40
|
|
invoke-virtual {v2, v3, v4, v5, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
iget-object v1, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->m:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {v0, p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;-><init>(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
const/4 p1, 0x1
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v1
|
|
|
|
.line 14
|
|
invoke-static {p1, v1, p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionInfoCompat;->a(III)Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionInfoCompat;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-virtual {v0, p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->l(Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionInfoCompat;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMode()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMode()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
const/4 v1, 0x2
|
|
|
|
.line 12
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result p1
|
|
|
|
.line 18
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 p1, 0x1
|
|
|
|
.line 21
|
|
return p1
|
|
|
|
.line 22
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 23
|
|
return p1
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 6
|
|
|
|
.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-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getDefaultHeight()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
invoke-static {v0, v1}, Lcom/google/android/material/internal/ViewUtils;->b(Landroid/content/Context;I)F
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v0
|
|
|
|
.line 17
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v1
|
|
|
|
.line 21
|
|
const/high16 v2, -0x80000000
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v3, 0x0
|
|
|
|
.line 24
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
.line 25
|
|
.line 26
|
|
const/4 v5, 0x1
|
|
|
|
.line 27
|
|
if-eq v1, v2, :cond_1
|
|
|
|
.line 28
|
|
.line 29
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result p2
|
|
|
|
.line 36
|
|
add-int/2addr p2, v0
|
|
|
|
.line 37
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result v0
|
|
|
|
.line 41
|
|
add-int/2addr v0, p2
|
|
|
|
.line 42
|
|
invoke-static {v0, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result p2
|
|
|
|
.line 46
|
|
goto :goto_0
|
|
|
|
.line 47
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result v1
|
|
|
|
.line 51
|
|
if-ne v1, v5, :cond_2
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result v1
|
|
|
|
.line 57
|
|
if-lt v1, v0, :cond_2
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result-object v1
|
|
|
|
.line 63
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setMinimumHeight(I)V
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
:cond_2
|
|
:goto_0
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result v0
|
|
|
|
.line 70
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result v1
|
|
|
|
.line 74
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 75
|
|
.line 76
|
|
iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->A:I
|
|
|
|
.line 77
|
|
.line 78
|
|
if-lez v1, :cond_3
|
|
|
|
.line 79
|
|
.line 80
|
|
goto :goto_1
|
|
|
|
.line 81
|
|
:cond_3
|
|
int-to-float v0, v0
|
|
|
|
.line 82
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
move-result-object v1
|
|
|
|
.line 86
|
|
const/16 v2, 0x38
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-static {v1, v2}, Lcom/google/android/material/internal/ViewUtils;->b(Landroid/content/Context;I)F
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result v1
|
|
|
|
.line 92
|
|
sub-float/2addr v0, v1
|
|
|
|
.line 93
|
|
float-to-int v1, v0
|
|
|
|
.line 94
|
|
:goto_1
|
|
iput v1, p0, Lcom/google/android/material/tabs/TabLayout;->y:I
|
|
|
|
.line 95
|
|
.line 96
|
|
:cond_4
|
|
invoke-super {p0, p1, p2}, Landroid/widget/HorizontalScrollView;->onMeasure(II)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result p1
|
|
|
|
.line 103
|
|
if-ne p1, v5, :cond_8
|
|
|
|
.line 104
|
|
.line 105
|
|
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-result-object p1
|
|
|
|
.line 109
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 110
|
|
.line 111
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 112
|
|
.line 113
|
|
if-eq v0, v5, :cond_5
|
|
|
|
.line 114
|
|
.line 115
|
|
const/4 v1, 0x2
|
|
|
|
.line 116
|
|
if-eq v0, v1, :cond_7
|
|
|
|
.line 117
|
|
.line 118
|
|
goto :goto_3
|
|
|
|
.line 119
|
|
:cond_5
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
move-result v0
|
|
|
|
.line 123
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
move-result v1
|
|
|
|
.line 127
|
|
if-eq v0, v1, :cond_6
|
|
|
|
.line 128
|
|
.line 129
|
|
goto :goto_2
|
|
|
|
.line 130
|
|
:cond_6
|
|
return-void
|
|
|
|
.line 131
|
|
:cond_7
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 132
|
|
.line 133
|
|
.line 134
|
|
move-result v0
|
|
|
|
.line 135
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
move-result v1
|
|
|
|
.line 139
|
|
if-ge v0, v1, :cond_8
|
|
|
|
.line 140
|
|
.line 141
|
|
:goto_2
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
move-result v0
|
|
|
|
.line 145
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
move-result v1
|
|
|
|
.line 149
|
|
add-int/2addr v1, v0
|
|
|
|
.line 150
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 151
|
|
.line 152
|
|
.line 153
|
|
move-result-object v0
|
|
|
|
.line 154
|
|
iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 155
|
|
.line 156
|
|
invoke-static {p2, v1, v0}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I
|
|
|
|
.line 157
|
|
.line 158
|
|
.line 159
|
|
move-result p2
|
|
|
|
.line 160
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
move-result v0
|
|
|
|
.line 164
|
|
invoke-static {v0, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
.line 165
|
|
.line 166
|
|
.line 167
|
|
move-result v0
|
|
|
|
.line 168
|
|
invoke-virtual {p1, v0, p2}, Landroid/view/View;->measure(II)V
|
|
|
|
.line 169
|
|
.line 170
|
|
.line 171
|
|
:cond_8
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/16 v1, 0x8
|
|
|
|
.line 6
|
|
.line 7
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMode()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMode()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v0
|
|
|
|
.line 19
|
|
const/4 v1, 0x2
|
|
|
|
.line 20
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 24
|
|
return p1
|
|
|
|
.line 25
|
|
:cond_1
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result p1
|
|
|
|
.line 29
|
|
return p1
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->setElevation(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-static {p0, p1}, Lcom/google/android/material/shape/MaterialShapeUtils;->b(Landroid/view/ViewGroup;F)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInlineLabel(Z)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->H:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_4
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->H:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
move v0, p1
|
|
|
|
.line 9
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v2
|
|
|
|
.line 15
|
|
if-ge v0, v2, :cond_3
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v1
|
|
|
|
.line 21
|
|
instance-of v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 22
|
|
.line 23
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 24
|
|
.line 25
|
|
check-cast v1, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->o:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 28
|
|
.line 29
|
|
iget-boolean v2, v2, Lcom/google/android/material/tabs/TabLayout;->H:Z
|
|
|
|
.line 30
|
|
.line 31
|
|
const/4 v3, 0x1
|
|
|
|
.line 32
|
|
xor-int/2addr v2, v3
|
|
|
|
.line 33
|
|
invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
iget-object v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->k:Landroid/widget/TextView;
|
|
|
|
.line 37
|
|
.line 38
|
|
if-nez v2, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
iget-object v4, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->l:Landroid/widget/ImageView;
|
|
|
|
.line 41
|
|
.line 42
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_1
|
|
|
|
.line 45
|
|
:cond_0
|
|
iget-object v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->f:Landroid/widget/TextView;
|
|
|
|
.line 46
|
|
.line 47
|
|
iget-object v4, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->g:Landroid/widget/ImageView;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {v1, v2, v4, v3}, Lcom/google/android/material/tabs/TabLayout$TabView;->g(Landroid/widget/TextView;Landroid/widget/ImageView;Z)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
goto :goto_2
|
|
|
|
.line 53
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v3, v1, Lcom/google/android/material/tabs/TabLayout$TabView;->l:Landroid/widget/ImageView;
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-virtual {v1, v2, v3, p1}, Lcom/google/android/material/tabs/TabLayout$TabView;->g(Landroid/widget/TextView;Landroid/widget/ImageView;Z)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 59
|
|
.line 60
|
|
goto :goto_0
|
|
|
|
.line 61
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->d()V
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInlineLabelResource(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;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setInlineLabel(Z)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->O:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->P:Ljava/util/ArrayList;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->O:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScrollAnimatorListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->f()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->R:Landroid/animation/ValueAnimator;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0, p1}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedTabIndicator(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 11
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
new-instance p1, Landroid/graphics/drawable/GradientDrawable;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/drawable/GradientDrawable;-><init>()V
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->s:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 3
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->t:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setTint(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 6
|
|
:goto_0
|
|
iget p1, p0, Lcom/google/android/material/tabs/TabLayout;->J:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->s:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result p1
|
|
|
|
.line 8
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->b(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedTabIndicatorColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->t:I
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->s:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setTint(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->o(Z)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedTabIndicatorGravity(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->F:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->F:I
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p1}, Landroid/view/View;->postInvalidateOnAnimation()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedTabIndicatorHeight(I)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->J:I
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->b(I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabGravity(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->D:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->d()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabIconTint(Landroid/content/res/ColorStateList;)V
|
|
.locals 3
|
|
.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/tabs/TabLayout;->q:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->q:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
const/4 v1, 0x0
|
|
|
|
.line 14
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v2
|
|
|
|
.line 20
|
|
check-cast v2, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v2, v2, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v2}, Lcom/google/android/material/tabs/TabLayout$TabView;->d()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabIconTintResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setTabIconTint(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabIndicatorAnimationMode(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->K:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v0, 0x1
|
|
|
|
.line 6
|
|
if-eq p1, v0, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v0, 0x2
|
|
|
|
.line 9
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance p1, Lcom/google/android/material/tabs/FadeTabIndicatorInterpolator;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->M:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
|
|
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 20
|
|
.line 21
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
const-string p1, " is not a valid TabIndicatorAnimationMode"
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object p1
|
|
|
|
.line 38
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
throw v0
|
|
|
|
.line 42
|
|
:cond_1
|
|
new-instance p1, Lcom/google/android/material/tabs/ElasticTabIndicatorInterpolator;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->M:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
|
|
|
|
.line 48
|
|
.line 49
|
|
return-void
|
|
|
|
.line 50
|
|
:cond_2
|
|
new-instance p1, Lcom/google/android/material/tabs/TabIndicatorInterpolator;
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->M:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
|
|
|
|
.line 56
|
|
.line 57
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabIndicatorFullWidth(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->I:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
sget p1, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->g:I
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p1, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->f:Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->a(I)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1}, Landroid/view/View;->postInvalidateOnAnimation()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabMode(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->G:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->d()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabRippleColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 3
|
|
.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/tabs/TabLayout;->r:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->r:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v1
|
|
|
|
.line 14
|
|
if-ge p1, v1, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
instance-of v1, v0, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v1
|
|
|
|
.line 30
|
|
sget v2, Lcom/google/android/material/tabs/TabLayout$TabView;->p:I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->e(Landroid/content/Context;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_0
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabRippleColorResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setTabRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabTextColors(Landroid/content/res/ColorStateList;)V
|
|
.locals 3
|
|
.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/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->p:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->f:Ljava/util/ArrayList;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
const/4 v1, 0x0
|
|
|
|
.line 14
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v2
|
|
|
|
.line 20
|
|
check-cast v2, Lcom/google/android/material/tabs/TabLayout$Tab;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v2, v2, Lcom/google/android/material/tabs/TabLayout$Tab;->e:Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v2}, Lcom/google/android/material/tabs/TabLayout$TabView;->d()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabsFromPagerAdapter(Landroidx/viewpager/widget/PagerAdapter;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/viewpager/widget/PagerAdapter;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->l(Landroidx/viewpager/widget/PagerAdapter;Z)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUnboundedRipple(Z)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->L:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->L:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->h:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v1
|
|
|
|
.line 14
|
|
if-ge p1, v1, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
instance-of v1, v0, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v1
|
|
|
|
.line 30
|
|
sget v2, Lcom/google/android/material/tabs/TabLayout$TabView;->p:I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->e(Landroid/content/Context;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_0
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUnboundedRippleResource(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;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setUnboundedRipple(Z)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setupWithViewPager(Landroidx/viewpager/widget/ViewPager;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/viewpager/widget/ViewPager;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->n(Landroidx/viewpager/widget/ViewPager;Z)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
.end method
|
|
|
|
.method public final shouldDelayChildPressedState()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabScrollRange()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-lez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v0, 0x1
|
|
|
|
.line 8
|
|
return v0
|
|
|
|
.line 9
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|