.class public Lcom/google/android/material/bottomappbar/BottomAppBar; .super Landroidx/appcompat/widget/Toolbar; .source "BottomAppBar.java" # interfaces .implements Landroidx/coordinatorlayout/widget/CoordinatorLayout$AttachedBehavior; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;, Lcom/google/android/material/bottomappbar/BottomAppBar$FabAlignmentMode; } .end annotation # static fields .field private static final ANIMATION_DURATION:J = 0x12cL .field public static final FAB_ALIGNMENT_MODE_CENTER:I = 0x0 .field public static final FAB_ALIGNMENT_MODE_END:I = 0x1 # instance fields .field private attachAnimator:Landroid/animation/Animator; .field private fabAlignmentMode:I .field fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; .field private fabAttached:Z .field private final fabOffsetEndMode:I .field private hideOnScroll:Z .field private final materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; .field private menuAnimator:Landroid/animation/Animator; .field private modeAnimator:Landroid/animation/Animator; .field private final topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; # direct methods .method public constructor (Landroid/content/Context;)V .registers 4 const/4 v0, 0x0 const/4 v1, 0x0 .line 119 invoke-direct {p0, p1, v0, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .registers 4 .line 123 sget v0, Lcom/google/android/material/R$attr;->bottomAppBarStyle:I invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .registers 12 .line 127 invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/Toolbar;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V const/4 v0, 0x1 .line 116 iput-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z .line 641 new-instance v1, Lcom/google/android/material/bottomappbar/BottomAppBar$7; invoke-direct {v1, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$7;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V iput-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; .line 129 sget-object v4, Lcom/google/android/material/R$styleable;->BottomAppBar:[I sget v6, Lcom/google/android/material/R$style;->Widget_MaterialComponents_BottomAppBar:I const/4 v1, 0x0 new-array v7, v1, [I move-object v2, p1 move-object v3, p2 move v5, p3 .line 130 invoke-static/range {v2 .. v7}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray; move-result-object p2 .line 137 sget p3, Lcom/google/android/material/R$styleable;->BottomAppBar_backgroundTint:I .line 138 invoke-static {p1, p2, p3}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList; move-result-object p1 .line 140 sget p3, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleMargin:I invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I move-result p3 int-to-float p3, p3 .line 141 sget v2, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleRoundedCornerRadius:I .line 142 invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I move-result v2 int-to-float v2, v2 .line 143 sget v3, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleVerticalOffset:I .line 144 invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I move-result v3 int-to-float v3, v3 .line 145 sget v4, Lcom/google/android/material/R$styleable;->BottomAppBar_fabAlignmentMode:I .line 146 invoke-virtual {p2, v4, v1}, Landroid/content/res/TypedArray;->getInt(II)I move-result v4 iput v4, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I .line 147 sget v4, Lcom/google/android/material/R$styleable;->BottomAppBar_hideOnScroll:I invoke-virtual {p2, v4, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z move-result v1 iput-boolean v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z .line 149 invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V .line 152 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getResources()Landroid/content/res/Resources; move-result-object p2 sget v1, Lcom/google/android/material/R$dimen;->mtrl_bottomappbar_fabOffsetEndMode:I invoke-virtual {p2, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I move-result p2 iput p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabOffsetEndMode:I .line 154 new-instance p2, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-direct {p2, p3, v2, v3}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->(FFF)V iput-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; .line 156 new-instance p3, Lcom/google/android/material/shape/ShapePathModel; invoke-direct {p3}, Lcom/google/android/material/shape/ShapePathModel;->()V .line 157 invoke-virtual {p3, p2}, Lcom/google/android/material/shape/ShapePathModel;->setTopEdge(Lcom/google/android/material/shape/EdgeTreatment;)V .line 158 new-instance p2, Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-direct {p2, p3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->(Lcom/google/android/material/shape/ShapePathModel;)V iput-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; .line 159 invoke-virtual {p2, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShadowEnabled(Z)V .line 160 sget-object p3, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style; invoke-virtual {p2, p3}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setPaintStyle(Landroid/graphics/Paint$Style;)V .line 161 invoke-static {p2, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V .line 162 invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V return-void .end method .method static synthetic access$002(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroid/animation/Animator;)Landroid/animation/Animator; .registers 2 .line 86 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; return-object p1 .end method .method static synthetic access$100(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; .registers 1 .line 86 iget-object p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; return-object p0 .end method .method static synthetic access$1000(Lcom/google/android/material/bottomappbar/BottomAppBar;Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V .registers 2 .line 86 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->addFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V return-void .end method .method static synthetic access$1100(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton; .registers 1 .line 86 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object p0 return-object p0 .end method .method static synthetic access$1200(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z .registers 1 .line 86 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isAnimationRunning()Z move-result p0 return p0 .end method .method static synthetic access$1300(Lcom/google/android/material/bottomappbar/BottomAppBar;)V .registers 1 .line 86 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V return-void .end method .method static synthetic access$1400(Lcom/google/android/material/bottomappbar/BottomAppBar;)F .registers 1 .line 86 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY()F move-result p0 return p0 .end method .method static synthetic access$200(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable; .registers 1 .line 86 iget-object p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; return-object p0 .end method .method static synthetic access$302(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroid/animation/Animator;)Landroid/animation/Animator; .registers 2 .line 86 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; return-object p1 .end method .method static synthetic access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroidx/appcompat/widget/ActionMenuView;IZ)V .registers 4 .line 86 invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V return-void .end method .method static synthetic access$502(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroid/animation/Animator;)Landroid/animation/Animator; .registers 2 .line 86 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; return-object p1 .end method .method static synthetic access$600(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z .registers 1 .line 86 iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z return p0 .end method .method static synthetic access$700(Lcom/google/android/material/bottomappbar/BottomAppBar;Z)V .registers 2 .line 86 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateAttachChange(Z)V return-void .end method .method static synthetic access$800(Lcom/google/android/material/bottomappbar/BottomAppBar;)I .registers 1 .line 86 iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I return p0 .end method .method static synthetic access$900(Lcom/google/android/material/bottomappbar/BottomAppBar;IZ)V .registers 3 .line 86 invoke-direct {p0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateMenuView(IZ)V return-void .end method .method private addFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V .registers 3 .line 657 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->removeFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V .line 658 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->addOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V .line 659 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->addOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V return-void .end method .method private cancelAnimations()V .registers 2 .line 590 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; if-eqz v0, :cond_7 .line 591 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V .line 593 :cond_7 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; if-eqz v0, :cond_e .line 594 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V .line 596 :cond_e iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; if-eqz v0, :cond_15 .line 597 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V :cond_15 return-void .end method .method private createCradleShapeAnimation(ZLjava/util/List;)V .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(Z", "Ljava/util/List<", "Landroid/animation/Animator;", ">;)V" } .end annotation if-eqz p1, :cond_b .line 475 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX()F move-result v1 invoke-virtual {v0, v1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setHorizontalOffset(F)V .line 478 :cond_b iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; .line 479 invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getInterpolation()F move-result v0 if-eqz p1, :cond_16 const/high16 p1, 0x3f800000 # 1.0f goto :goto_17 :cond_16 const/4 p1, 0x0 :goto_17 const/4 v1, 0x2 new-array v1, v1, [F const/4 v2, 0x0 aput v0, v1, v2 const/4 v0, 0x1 aput p1, v1, v0 invoke-static {v1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator; move-result-object p1 .line 480 new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$6; invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$6;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V const-wide/16 v0, 0x12c .line 487 invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator; .line 488 invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method private createCradleTranslationAnimation(ILjava/util/List;)V .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Ljava/util/List<", "Landroid/animation/Animator;", ">;)V" } .end annotation .line 316 iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z if-nez v0, :cond_5 return-void .line 320 :cond_5 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; .line 322 invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getHorizontalOffset()F move-result v0 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)I move-result p1 int-to-float p1, p1 const/4 v1, 0x2 new-array v1, v1, [F const/4 v2, 0x0 aput v0, v1, v2 const/4 v0, 0x1 aput p1, v1, v0 .line 321 invoke-static {v1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator; move-result-object p1 .line 324 new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$2; invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V const-wide/16 v0, 0x12c .line 332 invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator; .line 333 invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method private createFabTranslationXAnimation(ILjava/util/List;)V .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Ljava/util/List<", "Landroid/animation/Animator;", ">;)V" } .end annotation .line 361 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object v0 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)I move-result p1 int-to-float p1, p1 const/4 v1, 0x1 new-array v1, v1, [F const/4 v2, 0x0 aput p1, v1, v2 const-string p1, "translationX" invoke-static {v0, p1, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator; move-result-object p1 const-wide/16 v0, 0x12c .line 362 invoke-virtual {p1, v0, v1}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator; .line 363 invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method private createFabTranslationYAnimation(ZLjava/util/List;)V .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(Z", "Ljava/util/List<", "Landroid/animation/Animator;", ">;)V" } .end annotation .line 492 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object v0 if-nez v0, :cond_7 return-void .line 498 :cond_7 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY(Z)F move-result p1 const/4 v1, 0x1 new-array v1, v1, [F const/4 v2, 0x0 aput p1, v1, v2 const-string p1, "translationY" invoke-static {v0, p1, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator; move-result-object p1 const-wide/16 v0, 0x12c .line 499 invoke-virtual {p1, v0, v1}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator; .line 500 invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method private createMenuViewTranslationAnimation(IZLjava/util/List;)V .registers 11 .annotation system Ldalvik/annotation/Signature; value = { "(IZ", "Ljava/util/List<", "Landroid/animation/Animator;", ">;)V" } .end annotation .line 403 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuView()Landroidx/appcompat/widget/ActionMenuView; move-result-object v0 if-nez v0, :cond_7 return-void :cond_7 const/4 v1, 0x1 .line 410 new-array v2, v1, [F const/4 v3, 0x0 const/high16 v4, 0x3f800000 # 1.0f aput v4, v2, v3 const-string v5, "alpha" invoke-static {v0, v5, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator; move-result-object v2 .line 412 iget-boolean v6, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z if-nez v6, :cond_21 if-eqz p2, :cond_28 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z move-result v6 if-eqz v6, :cond_28 :cond_21 iget v6, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I if-eq v6, v1, :cond_34 if-ne p1, v1, :cond_28 goto :goto_34 .line 438 :cond_28 invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getAlpha()F move-result p1 cmpg-float p1, p1, v4 if-gez p1, :cond_5c .line 441 invoke-interface {p3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_5c .line 415 :cond_34 :goto_34 new-array v4, v1, [F const/4 v6, 0x0 aput v6, v4, v3 invoke-static {v0, v5, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator; move-result-object v4 .line 417 new-instance v5, Lcom/google/android/material/bottomappbar/BottomAppBar$4; invoke-direct {v5, p0, v0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar$4;->(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroidx/appcompat/widget/ActionMenuView;IZ)V invoke-virtual {v4, v5}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V .line 434 new-instance p1, Landroid/animation/AnimatorSet; invoke-direct {p1}, Landroid/animation/AnimatorSet;->()V const-wide/16 v5, 0x96 .line 435 invoke-virtual {p1, v5, v6}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet; const/4 p2, 0x2 .line 436 new-array p2, p2, [Landroid/animation/Animator; aput-object v4, p2, v3 aput-object v2, p2, v1 invoke-virtual {p1, p2}, Landroid/animation/AnimatorSet;->playSequentially([Landroid/animation/Animator;)V .line 437 invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_5c :goto_5c return-void .end method .method private findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; .registers 5 .line 338 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getParent()Landroid/view/ViewParent; move-result-object v0 instance-of v0, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout; const/4 v1, 0x0 if-nez v0, :cond_a return-object v1 .line 343 :cond_a invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getParent()Landroid/view/ViewParent; move-result-object v0 check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout; invoke-virtual {v0, p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDependents(Landroid/view/View;)Ljava/util/List; move-result-object v0 .line 344 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 :cond_18 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_2b invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Landroid/view/View; .line 345 instance-of v3, v2, Lcom/google/android/material/floatingactionbutton/FloatingActionButton; if-eqz v3, :cond_18 .line 346 check-cast v2, Lcom/google/android/material/floatingactionbutton/FloatingActionButton; return-object v2 :cond_2b return-object v1 .end method .method private getActionMenuView()Landroidx/appcompat/widget/ActionMenuView; .registers 4 const/4 v0, 0x0 .line 544 :goto_1 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildCount()I move-result v1 if-ge v0, v1, :cond_15 .line 545 invoke-virtual {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildAt(I)Landroid/view/View; move-result-object v1 .line 546 instance-of v2, v1, Landroidx/appcompat/widget/ActionMenuView; if-eqz v2, :cond_12 .line 547 check-cast v1, Landroidx/appcompat/widget/ActionMenuView; return-object v1 :cond_12 add-int/lit8 v0, v0, 0x1 goto :goto_1 :cond_15 const/4 v0, 0x0 return-object v0 .end method .method private getFabTranslationX()F .registers 2 .line 539 iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I invoke-direct {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)I move-result v0 int-to-float v0, v0 return v0 .end method .method private getFabTranslationX(I)I .registers 5 .line 532 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 const/4 v1, 0x0 const/4 v2, 0x1 if-ne v0, v2, :cond_a move v0, v2 goto :goto_b :cond_a move v0, v1 :goto_b if-ne p1, v2, :cond_1b .line 534 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getMeasuredWidth()I move-result p1 div-int/lit8 p1, p1, 0x2 iget v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabOffsetEndMode:I sub-int/2addr p1, v1 if-eqz v0, :cond_19 const/4 v2, -0x1 :cond_19 mul-int v1, p1, v2 :cond_1b return v1 .end method .method private getFabTranslationY()F .registers 2 .line 528 iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z invoke-direct {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY(Z)F move-result v0 return v0 .end method .method private getFabTranslationY(Z)F .registers 8 .line 504 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object v0 const/4 v1, 0x0 if-nez v0, :cond_8 return v1 .line 510 :cond_8 new-instance v2, Landroid/graphics/Rect; invoke-direct {v2}, Landroid/graphics/Rect;->()V .line 511 invoke-virtual {v0, v2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContentRect(Landroid/graphics/Rect;)Z .line 513 invoke-virtual {v2}, Landroid/graphics/Rect;->height()I move-result v3 int-to-float v3, v3 cmpl-float v1, v3, v1 if-nez v1, :cond_1e .line 516 invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getMeasuredHeight()I move-result v1 int-to-float v3, v1 .line 518 :cond_1e invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getHeight()I move-result v1 iget v4, v2, Landroid/graphics/Rect;->bottom:I sub-int/2addr v1, v4 int-to-float v1, v1 .line 519 invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getHeight()I move-result v4 invoke-virtual {v2}, Landroid/graphics/Rect;->height()I move-result v2 sub-int/2addr v4, v2 int-to-float v2, v4 .line 521 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getCradleVerticalOffset()F move-result v4 neg-float v4, v4 const/high16 v5, 0x40000000 # 2.0f div-float/2addr v3, v5 add-float/2addr v4, v3 add-float/2addr v4, v1 .line 522 invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getPaddingBottom()I move-result v0 int-to-float v0, v0 sub-float/2addr v2, v0 .line 524 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getMeasuredHeight()I move-result v0 neg-int v0, v0 int-to-float v0, v0 if-eqz p1, :cond_49 goto :goto_4a :cond_49 move v4, v2 :goto_4a add-float/2addr v0, v4 return v0 .end method .method private isAnimationRunning()Z .registers 2 .line 602 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; if-eqz v0, :cond_a invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z move-result v0 if-nez v0, :cond_1e :cond_a iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; if-eqz v0, :cond_14 .line 603 invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z move-result v0 if-nez v0, :cond_1e :cond_14 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; if-eqz v0, :cond_20 .line 604 invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z move-result v0 if-eqz v0, :cond_20 :cond_1e const/4 v0, 0x1 goto :goto_21 :cond_20 const/4 v0, 0x0 :goto_21 return v0 .end method .method private isVisibleFab()Z .registers 2 .line 354 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object v0 if-eqz v0, :cond_e .line 355 invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->isOrWillBeShown()Z move-result v0 if-eqz v0, :cond_e const/4 v0, 0x1 goto :goto_f :cond_e const/4 v0, 0x0 :goto_f return v0 .end method .method private maybeAnimateAttachChange(Z)V .registers 4 .line 446 invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z move-result v0 if-nez v0, :cond_7 return-void .line 450 :cond_7 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; if-eqz v0, :cond_e .line 451 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V .line 454 :cond_e new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V if-eqz p1, :cond_1d .line 456 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z move-result v1 if-eqz v1, :cond_1d const/4 v1, 0x1 goto :goto_1e :cond_1d const/4 v1, 0x0 :goto_1e invoke-direct {p0, v1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createCradleShapeAnimation(ZLjava/util/List;)V .line 457 invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabTranslationYAnimation(ZLjava/util/List;)V .line 459 new-instance p1, Landroid/animation/AnimatorSet; invoke-direct {p1}, Landroid/animation/AnimatorSet;->()V .line 460 invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V .line 461 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; .line 462 new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$5; invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$5;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V .line 469 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator; invoke-virtual {p1}, Landroid/animation/Animator;->start()V return-void .end method .method private maybeAnimateMenuView(IZ)V .registers 5 .line 367 invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z move-result v0 if-nez v0, :cond_7 return-void .line 371 :cond_7 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; if-eqz v0, :cond_e .line 372 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V .line 375 :cond_e new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V .line 378 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z move-result v1 if-nez v1, :cond_1b const/4 p1, 0x0 move p2, p1 .line 383 :cond_1b invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createMenuViewTranslationAnimation(IZLjava/util/List;)V .line 385 new-instance p1, Landroid/animation/AnimatorSet; invoke-direct {p1}, Landroid/animation/AnimatorSet;->()V .line 386 invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V .line 387 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; .line 388 new-instance p2, Lcom/google/android/material/bottomappbar/BottomAppBar$3; invoke-direct {p2, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$3;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V invoke-virtual {p1, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V .line 395 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator; invoke-virtual {p1}, Landroid/animation/Animator;->start()V return-void .end method .method private maybeAnimateModeChange(I)V .registers 3 .line 288 iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I if-eq v0, p1, :cond_34 invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z move-result v0 if-nez v0, :cond_b goto :goto_34 .line 292 :cond_b iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; if-eqz v0, :cond_12 .line 293 invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V .line 296 :cond_12 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V .line 298 invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createCradleTranslationAnimation(ILjava/util/List;)V .line 299 invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabTranslationXAnimation(ILjava/util/List;)V .line 301 new-instance p1, Landroid/animation/AnimatorSet; invoke-direct {p1}, Landroid/animation/AnimatorSet;->()V .line 302 invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V .line 303 iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; .line 304 new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$1; invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$1;->(Lcom/google/android/material/bottomappbar/BottomAppBar;)V invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V .line 311 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator; invoke-virtual {p1}, Landroid/animation/Animator;->start()V :cond_34 :goto_34 return-void .end method .method private removeFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V .registers 3 .line 663 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->removeOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V .line 664 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter; invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->removeOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V return-void .end method .method private setCutoutState()V .registers 5 .line 619 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX()F move-result v1 invoke-virtual {v0, v1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setHorizontalOffset(F)V .line 620 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton; move-result-object v0 .line 621 iget-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; iget-boolean v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z const/high16 v3, 0x3f800000 # 1.0f if-eqz v2, :cond_1d invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z move-result v2 if-eqz v2, :cond_1d move v2, v3 goto :goto_1e :cond_1d const/4 v2, 0x0 :goto_1e invoke-virtual {v1, v2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V if-eqz v0, :cond_31 .line 623 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY()F move-result v1 invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setTranslationY(F)V .line 624 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX()F move-result v1 invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setTranslationX(F)V .line 626 :cond_31 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuView()Landroidx/appcompat/widget/ActionMenuView; move-result-object v0 if-eqz v0, :cond_4c .line 628 invoke-virtual {v0, v3}, Landroidx/appcompat/widget/ActionMenuView;->setAlpha(F)V .line 629 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z move-result v1 if-nez v1, :cond_45 const/4 v1, 0x0 .line 630 invoke-direct {p0, v0, v1, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V goto :goto_4c .line 632 :cond_45 iget v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I iget-boolean v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z invoke-direct {p0, v0, v1, v2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V :cond_4c :goto_4c return-void .end method .method private translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V .registers 11 .line 567 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 const/4 v1, 0x0 const/4 v2, 0x1 if-ne v0, v2, :cond_a move v0, v2 goto :goto_b :cond_a move v0, v1 :goto_b move v3, v1 .line 570 :goto_c invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildCount()I move-result v4 if-ge v1, v4, :cond_41 .line 571 invoke-virtual {p0, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildAt(I)Landroid/view/View; move-result-object v4 .line 573 invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v5 instance-of v5, v5, Landroidx/appcompat/widget/Toolbar$LayoutParams; if-eqz v5, :cond_3e .line 574 invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v5 check-cast v5, Landroidx/appcompat/widget/Toolbar$LayoutParams; iget v5, v5, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I const v6, 0x800007 and-int/2addr v5, v6 const v6, 0x800003 if-ne v5, v6, :cond_3e if-eqz v0, :cond_36 .line 579 invoke-virtual {v4}, Landroid/view/View;->getLeft()I move-result v4 goto :goto_3a :cond_36 invoke-virtual {v4}, Landroid/view/View;->getRight()I move-result v4 :goto_3a invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I move-result v3 :cond_3e add-int/lit8 v1, v1, 0x1 goto :goto_c :cond_41 if-eqz v0, :cond_48 .line 583 invoke-virtual {p1}, Landroidx/appcompat/widget/ActionMenuView;->getRight()I move-result v0 goto :goto_4c :cond_48 invoke-virtual {p1}, Landroidx/appcompat/widget/ActionMenuView;->getLeft()I move-result v0 :goto_4c sub-int/2addr v3, v0 if-ne p2, v2, :cond_53 if-eqz p3, :cond_53 int-to-float p2, v3 goto :goto_54 :cond_53 const/4 p2, 0x0 .line 585 :goto_54 invoke-virtual {p1, p2}, Landroidx/appcompat/widget/ActionMenuView;->setTranslationX(F)V return-void .end method # virtual methods .method public getBackgroundTint()Landroid/content/res/ColorStateList; .registers 2 .line 193 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getTintList()Landroid/content/res/ColorStateList; move-result-object v0 return-object v0 .end method .method public getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior; .registers 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior<", "Lcom/google/android/material/bottomappbar/BottomAppBar;", ">;" } .end annotation .line 680 new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior; invoke-direct {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;->()V return-object v0 .end method .method public getCradleVerticalOffset()F .registers 2 .line 233 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getCradleVerticalOffset()F move-result v0 return v0 .end method .method public getFabAlignmentMode()I .registers 2 .line 171 iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I return v0 .end method .method public getFabCradleMargin()F .registers 2 .line 200 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getFabCradleMargin()F move-result v0 return v0 .end method .method public getFabCradleRoundedCornerRadius()F .registers 2 .line 216 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getFabCradleRoundedCornerRadius()F move-result v0 return v0 .end method .method public getHideOnScroll()Z .registers 2 .line 254 iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z return v0 .end method .method protected onLayout(ZIIII)V .registers 6 .line 609 invoke-super/range {p0 .. p5}, Landroidx/appcompat/widget/Toolbar;->onLayout(ZIIII)V .line 612 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->cancelAnimations()V .line 614 invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V return-void .end method .method protected onRestoreInstanceState(Landroid/os/Parcelable;)V .registers 3 .line 795 instance-of v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState; if-nez v0, :cond_8 .line 796 invoke-super {p0, p1}, Landroidx/appcompat/widget/Toolbar;->onRestoreInstanceState(Landroid/os/Parcelable;)V return-void .line 799 :cond_8 check-cast p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState; .line 800 invoke-virtual {p1}, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->getSuperState()Landroid/os/Parcelable; move-result-object v0 invoke-super {p0, v0}, Landroidx/appcompat/widget/Toolbar;->onRestoreInstanceState(Landroid/os/Parcelable;)V .line 801 iget v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I .line 802 iget-boolean p1, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAttached:Z iput-boolean p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z return-void .end method .method protected onSaveInstanceState()Landroid/os/Parcelable; .registers 3 .line 786 invoke-super {p0}, Landroidx/appcompat/widget/Toolbar;->onSaveInstanceState()Landroid/os/Parcelable; move-result-object v0 .line 787 new-instance v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState; invoke-direct {v1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->(Landroid/os/Parcelable;)V .line 788 iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I iput v0, v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I .line 789 iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z iput-boolean v0, v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAttached:Z return-object v1 .end method .method public replaceMenu(I)V .registers 3 .line 272 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getMenu()Landroid/view/Menu; move-result-object v0 invoke-interface {v0}, Landroid/view/Menu;->clear()V .line 273 invoke-virtual {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->inflateMenu(I)V return-void .end method .method public setBackgroundTint(Landroid/content/res/ColorStateList;)V .registers 3 .line 188 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-static {v0, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V return-void .end method .method public setCradleVerticalOffset(F)V .registers 3 .line 242 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getCradleVerticalOffset()F move-result v0 cmpl-float v0, p1, v0 if-eqz v0, :cond_12 .line 243 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setCradleVerticalOffset(F)V .line 244 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-virtual {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V :cond_12 return-void .end method .method public setFabAlignmentMode(I)V .registers 3 .line 182 invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateModeChange(I)V .line 183 iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateMenuView(IZ)V .line 184 iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I return-void .end method .method public setFabCradleMargin(F)V .registers 3 .line 207 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleMargin()F move-result v0 cmpl-float v0, p1, v0 if-eqz v0, :cond_12 .line 208 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabCradleMargin(F)V .line 209 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-virtual {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V :cond_12 return-void .end method .method public setFabCradleRoundedCornerRadius(F)V .registers 3 .line 221 invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleRoundedCornerRadius()F move-result v0 cmpl-float v0, p1, v0 if-eqz v0, :cond_12 .line 222 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabCradleRoundedCornerRadius(F)V .line 223 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-virtual {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V :cond_12 return-void .end method .method setFabDiameter(I)V .registers 3 int-to-float p1, p1 .line 281 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getFabDiameter()F move-result v0 cmpl-float v0, p1, v0 if-eqz v0, :cond_15 .line 282 iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment; invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabDiameter(F)V .line 283 iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable; invoke-virtual {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V :cond_15 return-void .end method .method public setHideOnScroll(Z)V .registers 2 .line 263 iput-boolean p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z return-void .end method .method public setSubtitle(Ljava/lang/CharSequence;)V .registers 2 return-void .end method .method public setTitle(Ljava/lang/CharSequence;)V .registers 2 return-void .end method