4232 lines
		
	
	
		
			116 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			4232 lines
		
	
	
		
			116 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/material/tabs/TabLayout;
 | |
| .super Landroid/widget/HorizontalScrollView;
 | |
| .source "TabLayout.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation runtime Landroidx/viewpager/widget/ViewPager$DecorView;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$TabView;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$Tab;,
 | |
|         Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;,
 | |
|         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 private static final ANIMATION_DURATION:I = 0x12c
 | |
| 
 | |
| .field public static final DEFAULT_GAP_TEXT_ICON:I = 0x8
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final DEFAULT_HEIGHT:I = 0x30
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final DEFAULT_HEIGHT_WITH_TEXT_ICON:I = 0x48
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final DEF_STYLE_RES:I
 | |
| 
 | |
| .field public static final FIXED_WRAP_GUTTER_MIN:I = 0x10
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final GRAVITY_CENTER:I = 0x1
 | |
| 
 | |
| .field public static final GRAVITY_FILL:I = 0x0
 | |
| 
 | |
| .field public static final GRAVITY_START:I = 0x2
 | |
| 
 | |
| .field public static final INDICATOR_ANIMATION_MODE_ELASTIC:I = 0x1
 | |
| 
 | |
| .field public static final INDICATOR_ANIMATION_MODE_LINEAR:I = 0x0
 | |
| 
 | |
| .field public static final INDICATOR_GRAVITY_BOTTOM:I = 0x0
 | |
| 
 | |
| .field public static final INDICATOR_GRAVITY_CENTER:I = 0x1
 | |
| 
 | |
| .field public static final INDICATOR_GRAVITY_STRETCH:I = 0x3
 | |
| 
 | |
| .field public static final INDICATOR_GRAVITY_TOP:I = 0x2
 | |
| 
 | |
| .field private static final INVALID_WIDTH:I = -0x1
 | |
| 
 | |
| .field private static final LOG_TAG:Ljava/lang/String; = "TabLayout"
 | |
| 
 | |
| .field public static final MODE_AUTO:I = 0x2
 | |
| 
 | |
| .field public static final MODE_FIXED:I = 0x1
 | |
| 
 | |
| .field public static final MODE_SCROLLABLE:I = 0x0
 | |
| 
 | |
| .field public static final TAB_LABEL_VISIBILITY_LABELED:I = 0x1
 | |
| 
 | |
| .field public static final TAB_LABEL_VISIBILITY_UNLABELED:I = 0x0
 | |
| 
 | |
| .field private static final TAB_MIN_WIDTH_MARGIN:I = 0x38
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final tabPool:Lr1/n$a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lr1/n$a<",
 | |
|             "Lcom/google/android/material/tabs/TabLayout$Tab;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
| .field private contentInsetStart:I
 | |
| 
 | |
| .field private currentVpSelectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public inlineLabel:Z
 | |
| 
 | |
| .field public mode:I
 | |
| 
 | |
| .field private pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
| .field private pagerAdapter:Ll3/a;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private pagerAdapterObserver:Landroid/database/DataSetObserver;
 | |
| 
 | |
| .field private final requestedTabMaxWidth:I
 | |
| 
 | |
| .field private final requestedTabMinWidth:I
 | |
| 
 | |
| .field private scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
| .field private final scrollableTabMinWidth:I
 | |
| 
 | |
| .field private selectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final selectedListeners:Ljava/util/ArrayList;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/ArrayList<",
 | |
|             "Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private setupViewPagerImplicitly:Z
 | |
| 
 | |
| .field public final slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final tabBackgroundResId:I
 | |
| 
 | |
| .field public tabGravity:I
 | |
| 
 | |
| .field public tabIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
| .field public tabIconTintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
| .field public tabIndicatorAnimationDuration:I
 | |
| 
 | |
| .field public tabIndicatorAnimationMode:I
 | |
| 
 | |
| .field public tabIndicatorFullWidth:Z
 | |
| 
 | |
| .field public tabIndicatorGravity:I
 | |
| 
 | |
| .field private tabIndicatorInterpolator:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
| 
 | |
| .field public tabMaxWidth:I
 | |
| 
 | |
| .field public tabPaddingBottom:I
 | |
| 
 | |
| .field public tabPaddingEnd:I
 | |
| 
 | |
| .field public tabPaddingStart:I
 | |
| 
 | |
| .field public tabPaddingTop:I
 | |
| 
 | |
| .field public tabRippleColorStateList:Landroid/content/res/ColorStateList;
 | |
| 
 | |
| .field public tabSelectedIndicator:Landroid/graphics/drawable/Drawable;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private tabSelectedIndicatorColor:I
 | |
| 
 | |
| .field public tabTextAppearance:I
 | |
| 
 | |
| .field public tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
| .field public tabTextMultiLineSize:F
 | |
| 
 | |
| .field public tabTextSize:F
 | |
| 
 | |
| .field private final tabViewPool:Lr1/n$a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lr1/n$a<",
 | |
|             "Lcom/google/android/material/tabs/TabLayout$TabView;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final tabs:Ljava/util/ArrayList;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/ArrayList<",
 | |
|             "Lcom/google/android/material/tabs/TabLayout$Tab;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public unboundedRipple:Z
 | |
| 
 | |
| .field public viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     sget v0, Lcom/google/android/material/R$style;->Widget_Design_TabLayout:I
 | |
| 
 | |
|     sput v0, Lcom/google/android/material/tabs/TabLayout;->DEF_STYLE_RES:I
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lr1/n$c;
 | |
| 
 | |
|     const/16 v1, 0x10
 | |
| 
 | |
|     invoke-direct {v0, v1}, Lr1/n$c;-><init>(I)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/android/material/tabs/TabLayout;->tabPool:Lr1/n$a;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 2
 | |
|     sget v0, Lcom/google/android/material/R$attr;->tabStyle:I
 | |
| 
 | |
|     invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/tabs/TabLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
|     .locals 11
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 3
 | |
|     sget v4, Lcom/google/android/material/tabs/TabLayout;->DEF_STYLE_RES:I
 | |
| 
 | |
|     invoke-static {p1, p2, p3, v4}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->wrap(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {p0, p1, p2, p3}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     .line 4
 | |
|     new-instance p1, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance p1, Landroid/graphics/drawable/GradientDrawable;
 | |
| 
 | |
|     invoke-direct {p1}, Landroid/graphics/drawable/GradientDrawable;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicator:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 6
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicatorColor:I
 | |
| 
 | |
|     const v0, 0x7fffffff
 | |
| 
 | |
|     .line 7
 | |
|     iput v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabMaxWidth:I
 | |
| 
 | |
|     .line 8
 | |
|     new-instance v0, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     .line 9
 | |
|     new-instance v0, Lr1/n$b;
 | |
| 
 | |
|     const/16 v1, 0xc
 | |
| 
 | |
|     invoke-direct {v0, v1}, Lr1/n$b;-><init>(I)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabViewPool:Lr1/n$a;
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0, p1}, Landroid/widget/HorizontalScrollView;->setHorizontalScrollBarEnabled(Z)V
 | |
| 
 | |
|     .line 12
 | |
|     new-instance v7, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-direct {v7, p0, v6}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;-><init>(Lcom/google/android/material/tabs/TabLayout;Landroid/content/Context;)V
 | |
| 
 | |
|     iput-object v7, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     .line 13
 | |
|     new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
 | |
| 
 | |
|     const/4 v1, -0x2
 | |
| 
 | |
|     const/4 v8, -0x1
 | |
| 
 | |
|     invoke-direct {v0, v1, v8}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
 | |
| 
 | |
|     invoke-super {p0, v7, p1, v0}, Landroid/widget/HorizontalScrollView;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
 | |
| 
 | |
|     .line 14
 | |
|     sget-object v2, Lcom/google/android/material/R$styleable;->TabLayout:[I
 | |
| 
 | |
|     const/4 v9, 0x1
 | |
| 
 | |
|     new-array v5, v9, [I
 | |
| 
 | |
|     sget v10, Lcom/google/android/material/R$styleable;->TabLayout_tabTextAppearance:I
 | |
| 
 | |
|     aput v10, v5, p1
 | |
| 
 | |
|     move-object v0, v6
 | |
| 
 | |
|     move-object v1, p2
 | |
| 
 | |
|     move v3, p3
 | |
| 
 | |
|     .line 15
 | |
|     invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 16
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     instance-of p3, p3, Landroid/graphics/drawable/ColorDrawable;
 | |
| 
 | |
|     if-eqz p3, :cond_0
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     check-cast p3, Landroid/graphics/drawable/ColorDrawable;
 | |
| 
 | |
|     .line 18
 | |
|     new-instance v0, Lcom/google/android/material/shape/MaterialShapeDrawable;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>()V
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p3}, Landroid/graphics/drawable/ColorDrawable;->getColor()I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-static {p3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     invoke-virtual {v0, p3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 20
 | |
|     invoke-virtual {v0, v6}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 21
 | |
|     invoke-static {p0}, Landroidx/core/view/ViewCompat;->R(Landroid/view/View;)F
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {v0, p3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setElevation(F)V
 | |
| 
 | |
|     .line 22
 | |
|     invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 23
 | |
|     :cond_0
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicator:I
 | |
| 
 | |
|     .line 24
 | |
|     invoke-static {v6, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 25
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 26
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorColor:I
 | |
| 
 | |
|     .line 27
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getColor(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     .line 28
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicatorColor(I)V
 | |
| 
 | |
|     .line 29
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorHeight:I
 | |
| 
 | |
|     .line 30
 | |
|     invoke-virtual {p2, p3, v8}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     .line 31
 | |
|     invoke-virtual {v7, p3}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->setSelectedIndicatorHeight(I)V
 | |
| 
 | |
|     .line 32
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorGravity:I
 | |
| 
 | |
|     .line 33
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     .line 34
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicatorGravity(I)V
 | |
| 
 | |
|     .line 35
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorFullWidth:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v9}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/tabs/TabLayout;->setTabIndicatorFullWidth(Z)V
 | |
| 
 | |
|     .line 36
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorAnimationMode:I
 | |
| 
 | |
|     .line 37
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     .line 38
 | |
|     invoke-virtual {p0, p3}, Lcom/google/android/material/tabs/TabLayout;->setTabIndicatorAnimationMode(I)V
 | |
| 
 | |
|     .line 39
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabPadding:I
 | |
| 
 | |
|     .line 40
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingBottom:I
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingEnd:I
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingTop:I
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingStart:I
 | |
| 
 | |
|     .line 41
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingStart:I
 | |
| 
 | |
|     .line 42
 | |
|     invoke-virtual {p2, v0, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingStart:I
 | |
| 
 | |
|     .line 43
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingTop:I
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingTop:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingTop:I
 | |
| 
 | |
|     .line 44
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingEnd:I
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingEnd:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingEnd:I
 | |
| 
 | |
|     .line 45
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabPaddingBottom:I
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingBottom:I
 | |
| 
 | |
|     .line 46
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingBottom:I
 | |
| 
 | |
|     .line 47
 | |
|     sget p3, Lcom/google/android/material/R$style;->TextAppearance_Design_Tab:I
 | |
| 
 | |
|     .line 48
 | |
|     invoke-virtual {p2, v10, p3}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextAppearance:I
 | |
| 
 | |
|     .line 49
 | |
|     sget-object v0, Landroidx/appcompat/R$styleable;->TextAppearance:[I
 | |
| 
 | |
|     .line 50
 | |
|     invoke-virtual {v6, p3, v0}, Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 51
 | |
|     :try_start_0
 | |
|     sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
 | |
| 
 | |
|     .line 52
 | |
|     invoke-virtual {p3, v0, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     iput v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextSize:F
 | |
| 
 | |
|     .line 53
 | |
|     sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
 | |
| 
 | |
|     .line 54
 | |
|     invoke-static {v6, p3, v0}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 55
 | |
|     invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     .line 56
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabTextColor:I
 | |
| 
 | |
|     invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 57
 | |
|     invoke-static {v6, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 58
 | |
|     :cond_1
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabSelectedTextColor:I
 | |
| 
 | |
|     invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 59
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getColor(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     .line 60
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/res/ColorStateList;->getDefaultColor()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-static {v0, p3}, Lcom/google/android/material/tabs/TabLayout;->createColorStateList(II)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 61
 | |
|     :cond_2
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIconTint:I
 | |
| 
 | |
|     .line 62
 | |
|     invoke-static {v6, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 63
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIconTintMode:I
 | |
| 
 | |
|     .line 64
 | |
|     invoke-virtual {p2, p3, v8}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     invoke-static {p3, v0}, Lcom/google/android/material/internal/ViewUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabIconTintMode:Landroid/graphics/PorterDuff$Mode;
 | |
| 
 | |
|     .line 65
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabRippleColor:I
 | |
| 
 | |
|     .line 66
 | |
|     invoke-static {v6, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabRippleColorStateList:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 67
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabIndicatorAnimationDuration:I
 | |
| 
 | |
|     const/16 v0, 0x12c
 | |
| 
 | |
|     .line 68
 | |
|     invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorAnimationDuration:I
 | |
| 
 | |
|     .line 69
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabMinWidth:I
 | |
| 
 | |
|     .line 70
 | |
|     invoke-virtual {p2, p3, v8}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->requestedTabMinWidth:I
 | |
| 
 | |
|     .line 71
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabMaxWidth:I
 | |
| 
 | |
|     .line 72
 | |
|     invoke-virtual {p2, p3, v8}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->requestedTabMaxWidth:I
 | |
| 
 | |
|     .line 73
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabBackground:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabBackgroundResId:I
 | |
| 
 | |
|     .line 74
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabContentStart:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->contentInsetStart:I
 | |
| 
 | |
|     .line 75
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabMode:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, v9}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     .line 76
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabGravity:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getInt(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput p3, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     .line 77
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabInlineLabel:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     iput-boolean p3, p0, Lcom/google/android/material/tabs/TabLayout;->inlineLabel:Z
 | |
| 
 | |
|     .line 78
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->TabLayout_tabUnboundedRipple:I
 | |
| 
 | |
|     invoke-virtual {p2, p3, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->unboundedRipple:Z
 | |
| 
 | |
|     .line 79
 | |
|     invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     .line 80
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 81
 | |
|     sget p2, Lcom/google/android/material/R$dimen;->design_tab_text_size_2line:I
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     int-to-float p2, p2
 | |
| 
 | |
|     iput p2, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextMultiLineSize:F
 | |
| 
 | |
|     .line 82
 | |
|     sget p2, Lcom/google/android/material/R$dimen;->design_tab_scrollable_min_width:I
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->scrollableTabMinWidth:I
 | |
| 
 | |
|     .line 83
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->applyModeAndGravity()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 84
 | |
|     invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     .line 85
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1200(Lcom/google/android/material/tabs/TabLayout;)Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorInterpolator:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1400(Lcom/google/android/material/tabs/TabLayout;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget p0, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicatorColor:I
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method private addTabFromItemView(Lcom/google/android/material/tabs/TabItem;)V
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabItem;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->newTab()Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p1, Lcom/google/android/material/tabs/TabItem;->text:Ljava/lang/CharSequence;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$Tab;->setText(Ljava/lang/CharSequence;)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     iget-object v1, p1, Lcom/google/android/material/tabs/TabItem;->icon:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$Tab;->setIcon(Landroid/graphics/drawable/Drawable;)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     iget v1, p1, Lcom/google/android/material/tabs/TabItem;->customLayout:I
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$Tab;->setCustomView(I)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     .line 8
 | |
|     :cond_2
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_3
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getContentDescription()Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->setContentDescription(Ljava/lang/CharSequence;)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     .line 10
 | |
|     :cond_3
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private addTabView(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 3
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->view:Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->setSelected(Z)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setActivated(Z)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->createLayoutParamsForTabs()Landroid/widget/LinearLayout$LayoutParams;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v1, v0, p1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private addViewInternal(Landroid/view/View;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     instance-of v0, p1, Lcom/google/android/material/tabs/TabItem;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     check-cast p1, Lcom/google/android/material/tabs/TabItem;
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addTabFromItemView(Lcom/google/android/material/tabs/TabItem;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "Only TabItem instances can be added to TabLayout"
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method private animateToTab(I)V
 | |
|     .locals 6
 | |
| 
 | |
|     const/4 v0, -0x1
 | |
| 
 | |
|     if-ne p1, v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getWindowToken()Landroid/os/IBinder;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Landroidx/core/view/ViewCompat;->U0(Landroid/view/View;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->childrenNeedLayout()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getScrollX()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0, p1, v2}, Lcom/google/android/material/tabs/TabLayout;->calculateScrollXForTab(IF)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eq v0, v2, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->ensureScrollAnimator()V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     const/4 v4, 0x2
 | |
| 
 | |
|     new-array v4, v4, [I
 | |
| 
 | |
|     const/4 v5, 0x0
 | |
| 
 | |
|     aput v0, v4, v5
 | |
| 
 | |
|     aput v2, v4, v1
 | |
| 
 | |
|     invoke-virtual {v3, v4}, Landroid/animation/ValueAnimator;->setIntValues([I)V
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorAnimationDuration:I
 | |
| 
 | |
|     invoke-virtual {v0, p1, v1}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->animateIndicatorToPosition(II)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 10
 | |
|     :cond_3
 | |
|     :goto_0
 | |
|     invoke-virtual {p0, p1, v2, v1}, Lcom/google/android/material/tabs/TabLayout;->setScrollPosition(IFZ)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private applyGravityForModeScrollable(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     if-eq p1, v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     if-eq p1, v0, :cond_2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setGravity(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const-string p1, "TabLayout"
 | |
| 
 | |
|     const-string v0, "MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     .line 3
 | |
|     :cond_2
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     const v0, 0x800003
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setGravity(I)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private applyModeAndGravity()V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v0, v2
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->contentInsetStart:I
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/tabs/TabLayout;->tabPaddingStart:I
 | |
| 
 | |
|     sub-int/2addr v0, v3
 | |
| 
 | |
|     invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_1
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-static {v3, v0, v2, v2, v2}, Landroidx/core/view/ViewCompat;->d2(Landroid/view/View;IIII)V
 | |
| 
 | |
|     .line 4
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     if-eq v0, v2, :cond_2
 | |
| 
 | |
|     if-eq v0, v1, :cond_2
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 5
 | |
|     :cond_2
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     if-ne v0, v1, :cond_3
 | |
| 
 | |
|     const-string v0, "TabLayout"
 | |
| 
 | |
|     const-string v1, "GRAVITY_START is not supported with the current tab mode, GRAVITY_CENTER will be used instead"
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     .line 7
 | |
|     :cond_3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setGravity(I)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 8
 | |
|     :cond_4
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->applyGravityForModeScrollable(I)V
 | |
| 
 | |
|     .line 9
 | |
|     :goto_2
 | |
|     invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->updateTabViews(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateScrollXForTab(IF)I
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     if-ne v0, v2, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return v1
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     add-int/lit8 p1, p1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v3}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-ge p1, v3, :cond_2
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v3, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_1
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0}, Landroid/view/View;->getWidth()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_3
 | |
|     move v3, v1
 | |
| 
 | |
|     :goto_2
 | |
|     if-eqz p1, :cond_4
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getWidth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 8
 | |
|     :cond_4
 | |
|     invoke-virtual {v0}, Landroid/view/View;->getLeft()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     div-int/lit8 v0, v3, 0x2
 | |
| 
 | |
|     add-int/2addr v0, p1
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getWidth()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     div-int/2addr p1, v2
 | |
| 
 | |
|     sub-int/2addr v0, p1
 | |
| 
 | |
|     add-int/2addr v3, v1
 | |
| 
 | |
|     int-to-float p1, v3
 | |
| 
 | |
|     const/high16 v1, 0x3f000000    # 0.5f
 | |
| 
 | |
|     mul-float/2addr p1, v1
 | |
| 
 | |
|     mul-float/2addr p1, p2
 | |
| 
 | |
|     float-to-int p1, p1
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {p0}, Landroidx/core/view/ViewCompat;->Z(Landroid/view/View;)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     if-nez p2, :cond_5
 | |
| 
 | |
|     add-int/2addr v0, p1
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :cond_5
 | |
|     sub-int/2addr v0, p1
 | |
| 
 | |
|     :goto_3
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private configureTab(Lcom/google/android/material/tabs/TabLayout$Tab;I)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p2}, Lcom/google/android/material/tabs/TabLayout$Tab;->setPosition(I)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p2, p1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     :goto_0
 | |
|     add-int/lit8 p2, p2, 0x1
 | |
| 
 | |
|     if-ge p2, p1, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Lcom/google/android/material/tabs/TabLayout$Tab;->setPosition(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private static createColorStateList(II)Landroid/content/res/ColorStateList;
 | |
|     .locals 4
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     new-array v1, v0, [[I
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v2, Landroid/widget/HorizontalScrollView;->SELECTED_STATE_SET:[I
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     aput-object v2, v1, v3
 | |
| 
 | |
|     aput p1, v0, v3
 | |
| 
 | |
|     .line 2
 | |
|     sget-object p1, Landroid/widget/HorizontalScrollView;->EMPTY_STATE_SET:[I
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     aput-object p1, v1, v2
 | |
| 
 | |
|     aput p0, v0, v2
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p0, Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     invoke-direct {p0, v1, v0}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private createLayoutParamsForTabs()Landroid/widget/LinearLayout$LayoutParams;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
 | |
| 
 | |
|     const/4 v1, -0x2
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->updateTabViewLayoutParams(Landroid/widget/LinearLayout$LayoutParams;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private createTabView(Lcom/google/android/material/tabs/TabLayout$Tab;)Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabViewPool:Lr1/n$a;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-interface {v0}, Lr1/n$a;->a()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-direct {v0, p0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;-><init>(Lcom/google/android/material/tabs/TabLayout;Landroid/content/Context;)V
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/tabs/TabLayout$TabView;->setTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setFocusable(Z)V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMinWidth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setMinimumWidth(I)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->access$200(Lcom/google/android/material/tabs/TabLayout$Tab;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->access$300(Lcom/google/android/material/tabs/TabLayout$Tab;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setContentDescription(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 8
 | |
|     :cond_2
 | |
|     invoke-static {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->access$200(Lcom/google/android/material/tabs/TabLayout$Tab;)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setContentDescription(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     :goto_1
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private dispatchTabReselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     invoke-interface {v1, p1}, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;->onTabReselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private dispatchTabSelected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     invoke-interface {v1, p1}, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;->onTabSelected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private dispatchTabUnselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 2
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     invoke-interface {v1, p1}, Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;->onTabUnselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private ensureScrollAnimator()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/animation/ValueAnimator;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     .line 3
 | |
|     sget-object v1, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorAnimationDuration:I
 | |
| 
 | |
|     int-to-long v1, v1
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     new-instance v1, Lcom/google/android/material/tabs/TabLayout$1;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/tabs/TabLayout$1;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private getDefaultHeight()I
 | |
|     .locals 5
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|         unit = 0x0
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-eqz v3, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v3}, Lcom/google/android/material/tabs/TabLayout$Tab;->getIcon()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     if-eqz v4, :cond_0
 | |
| 
 | |
|     invoke-virtual {v3}, Lcom/google/android/material/tabs/TabLayout$Tab;->getText()Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-nez v3, :cond_0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_1
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->inlineLabel:Z
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     const/16 v0, 0x48
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_2
 | |
|     const/16 v0, 0x30
 | |
| 
 | |
|     :goto_2
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private getTabMinWidth()I
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->requestedTabMinWidth:I
 | |
| 
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     if-ne v0, v1, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollableTabMinWidth:I
 | |
| 
 | |
|     :goto_1
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private getTabScrollRange()I
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getWidth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     sub-int/2addr v0, v1
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingLeft()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     sub-int/2addr v0, v1
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingRight()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     sub-int/2addr v0, v1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private removeTabViewAt(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/widget/LinearLayout;->removeViewAt(I)V
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$TabView;->reset()V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabViewPool:Lr1/n$a;
 | |
| 
 | |
|     invoke-interface {p1, v0}, Lr1/n$a;->b(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->requestLayout()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private setSelectedTabView(I)V
 | |
|     .locals 6
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ge p1, v0, :cond_2
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v3, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v3, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     if-ne v2, p1, :cond_0
 | |
| 
 | |
|     move v5, v4
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_0
 | |
|     move v5, v1
 | |
| 
 | |
|     .line 3
 | |
|     :goto_1
 | |
|     invoke-virtual {v3, v5}, Landroid/view/View;->setSelected(Z)V
 | |
| 
 | |
|     if-ne v2, p1, :cond_1
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_1
 | |
|     move v4, v1
 | |
| 
 | |
|     .line 4
 | |
|     :goto_2
 | |
|     invoke-virtual {v3, v4}, Landroid/view/View;->setActivated(Z)V
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private setupWithViewPager(Landroidx/viewpager/widget/ViewPager;ZZ)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroidx/viewpager/widget/ViewPager;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->O(Landroidx/viewpager/widget/ViewPager$h;)V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Landroidx/viewpager/widget/ViewPager;->N(Landroidx/viewpager/widget/ViewPager$g;)V
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->currentVpSelectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     .line 10
 | |
|     iput-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->currentVpSelectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     :cond_2
 | |
|     if-eqz p1, :cond_6
 | |
| 
 | |
|     .line 11
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     if-nez v0, :cond_3
 | |
| 
 | |
|     .line 13
 | |
|     new-instance v0, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     .line 14
 | |
|     :cond_3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;->reset()V
 | |
| 
 | |
|     .line 15
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pageChangeListener:Lcom/google/android/material/tabs/TabLayout$TabLayoutOnPageChangeListener;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroidx/viewpager/widget/ViewPager;->c(Landroidx/viewpager/widget/ViewPager$h;)V
 | |
| 
 | |
|     .line 16
 | |
|     new-instance v0, Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;
 | |
| 
 | |
|     invoke-direct {v0, p1}, Lcom/google/android/material/tabs/TabLayout$ViewPagerOnTabSelectedListener;-><init>(Landroidx/viewpager/widget/ViewPager;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->currentVpSelectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Ll3/a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p0, v0, p2}, Lcom/google/android/material/tabs/TabLayout;->setPagerAdapter(Ll3/a;Z)V
 | |
| 
 | |
|     .line 20
 | |
|     :cond_4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     if-nez v0, :cond_5
 | |
| 
 | |
|     .line 21
 | |
|     new-instance v0, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     .line 22
 | |
|     :cond_5
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;->setAutoRefresh(Z)V
 | |
| 
 | |
|     .line 23
 | |
|     iget-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->adapterChangeListener:Lcom/google/android/material/tabs/TabLayout$AdapterChangeListener;
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroidx/viewpager/widget/ViewPager;->b(Landroidx/viewpager/widget/ViewPager$g;)V
 | |
| 
 | |
|     .line 24
 | |
|     invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2, v0}, Lcom/google/android/material/tabs/TabLayout;->setScrollPosition(IFZ)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 25
 | |
|     :cond_6
 | |
|     iput-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 26
 | |
|     invoke-virtual {p0, v1, p1}, Lcom/google/android/material/tabs/TabLayout;->setPagerAdapter(Ll3/a;Z)V
 | |
| 
 | |
|     .line 27
 | |
|     :goto_0
 | |
|     iput-boolean p3, p0, Lcom/google/android/material/tabs/TabLayout;->setupViewPagerImplicitly:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private updateAllTabs()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v1, v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     invoke-virtual {v2}, Lcom/google/android/material/tabs/TabLayout$Tab;->updateView()V
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private updateTabViewLayoutParams(Landroid/widget/LinearLayout$LayoutParams;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/widget/LinearLayout$LayoutParams;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->width:I
 | |
| 
 | |
|     const/high16 v0, 0x3f800000    # 1.0f
 | |
| 
 | |
|     .line 3
 | |
|     iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->weight:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, -0x2
 | |
| 
 | |
|     .line 4
 | |
|     iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->width:I
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->weight:F
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
|     .locals 1
 | |
|     .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;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addTab(Lcom/google/android/material/tabs/TabLayout$Tab;I)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2, v0}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;IZ)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addTab(Lcom/google/android/material/tabs/TabLayout$Tab;IZ)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->parent:Lcom/google/android/material/tabs/TabLayout;
 | |
| 
 | |
|     if-ne v0, p0, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0, p1, p2}, Lcom/google/android/material/tabs/TabLayout;->configureTab(Lcom/google/android/material/tabs/TabLayout$Tab;I)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addTabView(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     if-eqz p3, :cond_0
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->select()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p2, "Tab belongs to a different TabLayout."
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public addTab(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0, p1, v0, p2}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;IZ)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addView(Landroid/view/View;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addViewInternal(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addView(Landroid/view/View;I)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addViewInternal(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addViewInternal(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addViewInternal(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public clearOnTabSelectedListeners()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public createTabFromPool()Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/android/material/tabs/TabLayout;->tabPool:Lr1/n$a;
 | |
| 
 | |
|     invoke-interface {v0}, Lr1/n$a;->a()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;-><init>()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/widget/FrameLayout$LayoutParams;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->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;->selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     if-ltz p1, :cond_1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-lt p1, v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_1
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public getTabCount()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabGravity()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     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;->tabIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabIndicatorAnimationMode()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorAnimationMode:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabIndicatorGravity()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorGravity:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabMaxWidth()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabMaxWidth:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTabMode()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     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;->tabRippleColorStateList:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     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;->tabSelectedIndicator:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     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;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public hasUnboundedRipple()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->unboundedRipple:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isInlineLabel()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->inlineLabel:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isTabIndicatorFullWidth()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorFullWidth:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public newTab()Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->createTabFromPool()Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p0, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->parent:Lcom/google/android/material/tabs/TabLayout;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->createTabView(Lcom/google/android/material/tabs/TabLayout$Tab;)Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     iput-object v1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->view:Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->access$000(Lcom/google/android/material/tabs/TabLayout$Tab;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     if-eq v1, v2, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, v0, Lcom/google/android/material/tabs/TabLayout$Tab;->view:Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-static {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->access$000(Lcom/google/android/material/tabs/TabLayout$Tab;)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setId(I)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public onAttachedToWindow()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onAttachedToWindow()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Lcom/google/android/material/shape/MaterialShapeUtils;->setParentAbsoluteElevation(Landroid/view/View;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     instance-of v1, v0, Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     check-cast v0, Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     invoke-direct {p0, v0, v1, v1}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;ZZ)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onDetachedFromWindow()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onDetachedFromWindow()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->setupViewPagerImplicitly:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;)V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->setupViewPagerImplicitly:Z
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onDraw(Landroid/graphics/Canvas;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-ge v0, v1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     instance-of v2, v1, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     check-cast v1, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-static {v1, p1}, Lcom/google/android/material/tabs/TabLayout$TabView;->access$400(Lcom/google/android/material/tabs/TabLayout$TabView;Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v0, v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onDraw(Landroid/graphics/Canvas;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroid/view/accessibility/AccessibilityNodeInfo;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lt1/c;->V1(Landroid/view/accessibility/AccessibilityNodeInfo;)Lt1/c;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v1, v0, v2, v1}, Lt1/c$b;->f(IIZI)Lt1/c$b;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0}, Lt1/c;->W0(Ljava/lang/Object;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onMeasure(II)V
 | |
|     .locals 6
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getDefaultHeight()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-static {v0, v1}, Lcom/google/android/material/internal/ViewUtils;->dpToPx(Landroid/content/Context;I)F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-static {v0}, Ljava/lang/Math;->round(F)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/high16 v2, -0x80000000
 | |
| 
 | |
|     const/high16 v3, 0x40000000    # 2.0f
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     const/4 v5, 0x1
 | |
| 
 | |
|     if-eq v1, v2, :cond_1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingTop()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     add-int/2addr p2, v0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingBottom()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/2addr v0, p2
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getChildCount()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-ne v1, v5, :cond_2
 | |
| 
 | |
|     invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-lt v1, v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, v4}, Landroid/widget/HorizontalScrollView;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Landroid/view/View;->setMinimumHeight(I)V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_4
 | |
| 
 | |
|     .line 9
 | |
|     iget v1, p0, Lcom/google/android/material/tabs/TabLayout;->requestedTabMaxWidth:I
 | |
| 
 | |
|     if-lez v1, :cond_3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_3
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const/16 v2, 0x38
 | |
| 
 | |
|     invoke-static {v1, v2}, Lcom/google/android/material/internal/ViewUtils;->dpToPx(Landroid/content/Context;I)F
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     sub-float/2addr v0, v1
 | |
| 
 | |
|     float-to-int v1, v0
 | |
| 
 | |
|     :goto_1
 | |
|     iput v1, p0, Lcom/google/android/material/tabs/TabLayout;->tabMaxWidth:I
 | |
| 
 | |
|     .line 11
 | |
|     :cond_4
 | |
|     invoke-super {p0, p1, p2}, Landroid/widget/HorizontalScrollView;->onMeasure(II)V
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getChildCount()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-ne p1, v5, :cond_8
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {p0, v4}, Landroid/widget/HorizontalScrollView;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 14
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     if-eqz v0, :cond_6
 | |
| 
 | |
|     if-eq v0, v5, :cond_5
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     if-eq v0, v1, :cond_6
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     .line 15
 | |
|     :cond_5
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getMeasuredWidth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eq v0, v1, :cond_7
 | |
| 
 | |
|     :goto_2
 | |
|     move v4, v5
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     .line 16
 | |
|     :cond_6
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getMeasuredWidth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-ge v0, v1, :cond_7
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_7
 | |
|     :goto_3
 | |
|     if-eqz v4, :cond_8
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingTop()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getPaddingBottom()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-int/2addr v1, v0
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
 | |
| 
 | |
|     .line 19
 | |
|     invoke-static {p2, v1, v0}, Landroid/widget/HorizontalScrollView;->getChildMeasureSpec(III)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     .line 20
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getMeasuredWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 21
 | |
|     invoke-virtual {p1, v0, p2}, Landroid/view/View;->measure(II)V
 | |
| 
 | |
|     :cond_8
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public populateFromPagerAdapter()V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->removeAllTabs()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapter:Ll3/a;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Ll3/a;->e()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->newTab()Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     iget-object v4, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapter:Ll3/a;
 | |
| 
 | |
|     invoke-virtual {v4, v2}, Ll3/a;->g(I)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     invoke-virtual {v3, v4}, Lcom/google/android/material/tabs/TabLayout$Tab;->setText(Ljava/lang/CharSequence;)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     invoke-virtual {p0, v3, v1}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->viewPager:Landroidx/viewpager/widget/ViewPager;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     if-lez v0, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getSelectedTabPosition()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eq v0, v1, :cond_1
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-ge v0, v1, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->selectTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public releaseFromTabPool(Lcom/google/android/material/tabs/TabLayout$Tab;)Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/android/material/tabs/TabLayout;->tabPool:Lr1/n$a;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lr1/n$a;->b(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public removeAllTabs()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->removeTabViewAt(I)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :goto_1
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->remove()V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v1}, Lcom/google/android/material/tabs/TabLayout$Tab;->reset()V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0, v1}, Lcom/google/android/material/tabs/TabLayout;->releaseFromTabPool(Lcom/google/android/material/tabs/TabLayout$Tab;)Z
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 8
 | |
|     iput-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
|     .locals 1
 | |
|     .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;->selectedListeners:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public removeTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p1, Lcom/google/android/material/tabs/TabLayout$Tab;->parent:Lcom/google/android/material/tabs/TabLayout;
 | |
| 
 | |
|     if-ne v0, p0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->removeTabAt(I)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "Tab does not belong to this TabLayout."
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public removeTabAt(I)V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move v0, v1
 | |
| 
 | |
|     .line 2
 | |
|     :goto_0
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->removeTabViewAt(I)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2, p1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-eqz v2, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v2}, Lcom/google/android/material/tabs/TabLayout$Tab;->reset()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->releaseFromTabPool(Lcom/google/android/material/tabs/TabLayout$Tab;)Z
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     iget-object v2, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     move v3, p1
 | |
| 
 | |
|     :goto_1
 | |
|     if-ge v3, v2, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v4, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     check-cast v4, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     invoke-virtual {v4, v3}, Lcom/google/android/material/tabs/TabLayout$Tab;->setPosition(I)V
 | |
| 
 | |
|     add-int/lit8 v3, v3, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     if-ne v0, p1, :cond_4
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_3
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabs:Ljava/util/ArrayList;
 | |
| 
 | |
|     add-int/lit8 p1, p1, -0x1
 | |
| 
 | |
|     invoke-static {v1, p1}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     :goto_2
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->selectTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     :cond_4
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public selectTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->selectTab(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public selectTab(Lcom/google/android/material/tabs/TabLayout$Tab;Z)V
 | |
|     .locals 4
 | |
|     .param p1    # Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-ne v0, p1, :cond_0
 | |
| 
 | |
|     if-eqz v0, :cond_6
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->dispatchTabReselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->animateToTab(I)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     move v2, v1
 | |
| 
 | |
|     :goto_0
 | |
|     if-eqz p2, :cond_4
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$Tab;->getPosition()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     if-ne p2, v1, :cond_3
 | |
| 
 | |
|     :cond_2
 | |
|     if-eq v2, v1, :cond_3
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0, v2, p2, v3}, Lcom/google/android/material/tabs/TabLayout;->setScrollPosition(IFZ)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 8
 | |
|     :cond_3
 | |
|     invoke-direct {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->animateToTab(I)V
 | |
| 
 | |
|     :goto_1
 | |
|     if-eq v2, v1, :cond_4
 | |
| 
 | |
|     .line 9
 | |
|     invoke-direct {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabView(I)V
 | |
| 
 | |
|     .line 10
 | |
|     :cond_4
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->selectedTab:Lcom/google/android/material/tabs/TabLayout$Tab;
 | |
| 
 | |
|     if-eqz v0, :cond_5
 | |
| 
 | |
|     .line 11
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->dispatchTabUnselected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     :cond_5
 | |
|     if-eqz p1, :cond_6
 | |
| 
 | |
|     .line 12
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->dispatchTabSelected(Lcom/google/android/material/tabs/TabLayout$Tab;)V
 | |
| 
 | |
|     :cond_6
 | |
|     :goto_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setElevation(F)V
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x15
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->setElevation(F)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0, p1}, Lcom/google/android/material/shape/MaterialShapeUtils;->setElevation(Landroid/view/View;F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setInlineLabel(Z)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->inlineLabel:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->inlineLabel:Z
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ge p1, v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     instance-of v1, v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/tabs/TabLayout$TabView;->updateOrientation()V
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 p1, p1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->applyModeAndGravity()V
 | |
| 
 | |
|     :cond_2
 | |
|     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/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setInlineLabel(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
|     .locals 1
 | |
|     .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;->selectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->removeOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->selectedListener:Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$BaseOnTabSelectedListener;)V
 | |
| 
 | |
|     :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 setPagerAdapter(Ll3/a;Z)V
 | |
|     .locals 2
 | |
|     .param p1    # Ll3/a;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapter:Ll3/a;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapterObserver:Landroid/database/DataSetObserver;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v1}, Ll3/a;->u(Landroid/database/DataSetObserver;)V
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapter:Ll3/a;
 | |
| 
 | |
|     if-eqz p2, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapterObserver:Landroid/database/DataSetObserver;
 | |
| 
 | |
|     if-nez p2, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     new-instance p2, Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;
 | |
| 
 | |
|     invoke-direct {p2, p0}, Lcom/google/android/material/tabs/TabLayout$PagerAdapterObserver;-><init>(Lcom/google/android/material/tabs/TabLayout;)V
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapterObserver:Landroid/database/DataSetObserver;
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     iget-object p2, p0, Lcom/google/android/material/tabs/TabLayout;->pagerAdapterObserver:Landroid/database/DataSetObserver;
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Ll3/a;->m(Landroid/database/DataSetObserver;)V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/tabs/TabLayout;->populateFromPagerAdapter()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setScrollAnimatorListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->ensureScrollAnimator()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setScrollPosition(IFZ)V
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1, p2, p3, v0}, Lcom/google/android/material/tabs/TabLayout;->setScrollPosition(IFZZ)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setScrollPosition(IFZZ)V
 | |
|     .locals 2
 | |
| 
 | |
|     int-to-float v0, p1
 | |
| 
 | |
|     add-float/2addr v0, p2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0}, Ljava/lang/Math;->round(F)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ltz v0, :cond_3
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-lt v0, v1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     if-eqz p4, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p4, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {p4, p1, p2}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->setIndicatorPositionFromTabPosition(IF)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object p4, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     if-eqz p4, :cond_2
 | |
| 
 | |
|     invoke-virtual {p4}, Landroid/animation/ValueAnimator;->isRunning()Z
 | |
| 
 | |
|     move-result p4
 | |
| 
 | |
|     if-eqz p4, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p4, p0, Lcom/google/android/material/tabs/TabLayout;->scrollAnimator:Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-virtual {p4}, Landroid/animation/ValueAnimator;->cancel()V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     invoke-direct {p0, p1, p2}, Lcom/google/android/material/tabs/TabLayout;->calculateScrollXForTab(IF)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2}, Landroid/widget/HorizontalScrollView;->scrollTo(II)V
 | |
| 
 | |
|     if-eqz p3, :cond_3
 | |
| 
 | |
|     .line 8
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabView(I)V
 | |
| 
 | |
|     :cond_3
 | |
|     :goto_0
 | |
|     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 3
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setSelectedTabIndicator(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     :goto_0
 | |
|     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
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicator:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance p1, Landroid/graphics/drawable/GradientDrawable;
 | |
| 
 | |
|     invoke-direct {p1}, Landroid/graphics/drawable/GradientDrawable;-><init>()V
 | |
| 
 | |
|     :goto_0
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicator:Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setSelectedTabIndicatorColor(I)V
 | |
|     .locals 0
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorInt;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabSelectedIndicatorColor:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setSelectedTabIndicatorGravity(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorGravity:I
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorGravity:I
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-static {p1}, Landroidx/core/view/ViewCompat;->n1(Landroid/view/View;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setSelectedTabIndicatorHeight(I)V
 | |
|     .locals 1
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;->setSelectedIndicatorHeight(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabGravity(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabGravity:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->applyModeAndGravity()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabIconTint(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIconTint:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->updateAllTabs()V
 | |
| 
 | |
|     :cond_0
 | |
|     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/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setTabIconTint(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabIndicatorAnimationMode(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorAnimationMode:I
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     if-ne p1, v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance p1, Lcom/google/android/material/tabs/ElasticTabIndicatorInterpolator;
 | |
| 
 | |
|     invoke-direct {p1}, Lcom/google/android/material/tabs/ElasticTabIndicatorInterpolator;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorInterpolator:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     new-instance v1, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p1, " is not a valid TabIndicatorAnimationMode"
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     new-instance p1, Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
| 
 | |
|     invoke-direct {p1}, Lcom/google/android/material/tabs/TabIndicatorInterpolator;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorInterpolator:Lcom/google/android/material/tabs/TabIndicatorInterpolator;
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabIndicatorFullWidth(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabIndicatorFullWidth:Z
 | |
| 
 | |
|     .line 2
 | |
|     iget-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-static {p1}, Landroidx/core/view/ViewCompat;->n1(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabMode(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     if-eq p1, v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Lcom/google/android/material/tabs/TabLayout;->mode:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->applyModeAndGravity()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabRippleColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabRippleColorStateList:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabRippleColorStateList:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ge p1, v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     instance-of v1, v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->access$100(Lcom/google/android/material/tabs/TabLayout$TabView;Landroid/content/Context;)V
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 p1, p1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :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/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setTabRippleColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabTextColors(II)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1, p2}, Lcom/google/android/material/tabs/TabLayout;->createColorStateList(II)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setTabTextColors(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabTextColors(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/tabs/TabLayout;->tabTextColors:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->updateAllTabs()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setTabsFromPagerAdapter(Ll3/a;)V
 | |
|     .locals 1
 | |
|     .param p1    # Ll3/a;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->setPagerAdapter(Ll3/a;Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setUnboundedRipple(Z)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/tabs/TabLayout;->unboundedRipple:Z
 | |
| 
 | |
|     if-eq v0, p1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/tabs/TabLayout;->unboundedRipple:Z
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ge p1, v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     instance-of v1, v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     check-cast v0, Lcom/google/android/material/tabs/TabLayout$TabView;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {v0, v1}, Lcom/google/android/material/tabs/TabLayout$TabView;->access$100(Lcom/google/android/material/tabs/TabLayout$TabView;Landroid/content/Context;)V
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 p1, p1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :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/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/tabs/TabLayout;->setUnboundedRipple(Z)V
 | |
| 
 | |
|     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
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1, v0}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setupWithViewPager(Landroidx/viewpager/widget/ViewPager;Z)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroidx/viewpager/widget/ViewPager;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/tabs/TabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;ZZ)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public shouldDelayChildPressedState()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabScrollRange()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public updateTabViews(Z)V
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-ge v0, v1, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/tabs/TabLayout;->slidingTabIndicator:Lcom/google/android/material/tabs/TabLayout$SlidingTabIndicator;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Lcom/google/android/material/tabs/TabLayout;->getTabMinWidth()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/view/View;->setMinimumWidth(I)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Landroid/widget/LinearLayout$LayoutParams;
 | |
| 
 | |
|     invoke-direct {p0, v2}, Lcom/google/android/material/tabs/TabLayout;->updateTabViewLayoutParams(Landroid/widget/LinearLayout$LayoutParams;)V
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v1}, Landroid/view/View;->requestLayout()V
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v0, v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 |