apkfuckery/com.discord/smali_classes2/com/google/android/material/bottomappbar/BottomAppBar.smali
2019-07-24 13:27:29 +02:00

1813 lines
54 KiB
Smali

.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;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.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;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private modeAnimator:Landroid/animation/Animator;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private final topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x0
invoke-direct {p0, p1, v0, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
sget v0, Lcom/google/android/material/R$attr;->bottomAppBarStyle:I
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;-><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 8
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/Toolbar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
new-instance v1, Lcom/google/android/material/bottomappbar/BottomAppBar$7;
invoke-direct {v1, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$7;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
iput-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter;
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
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
sget p3, Lcom/google/android/material/R$styleable;->BottomAppBar_backgroundTint:I
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
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
sget v2, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleRoundedCornerRadius:I
invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v2
int-to-float v2, v2
sget v3, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleVerticalOffset:I
invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v3
int-to-float v3, v3
sget v4, Lcom/google/android/material/R$styleable;->BottomAppBar_fabAlignmentMode:I
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
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
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
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
new-instance p2, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
invoke-direct {p2, p3, v2, v3}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;-><init>(FFF)V
iput-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
new-instance p2, Lcom/google/android/material/shape/ShapePathModel;
invoke-direct {p2}, Lcom/google/android/material/shape/ShapePathModel;-><init>()V
iget-object p3, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
invoke-virtual {p2, p3}, Lcom/google/android/material/shape/ShapePathModel;->setTopEdge(Lcom/google/android/material/shape/EdgeTreatment;)V
new-instance p3, Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-direct {p3, p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>(Lcom/google/android/material/shape/ShapePathModel;)V
iput-object p3, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
iget-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-virtual {p2, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShadowEnabled(Z)V
iget-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
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
iget-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-static {p2, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-static {p0, p1}, 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;
.locals 0
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;
.locals 0
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
.locals 0
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;
.locals 0
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
.locals 0
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
.locals 0
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
.locals 0
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;
.locals 0
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;
.locals 0
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
.locals 0
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;
.locals 0
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
.locals 0
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
.locals 0
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
.locals 0
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
.locals 0
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
.locals 1
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->removeFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
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
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
.locals 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_2
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_2
return-void
.end method
.method private createCradleShapeAnimation(ZLjava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
if-eqz p1, :cond_0
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
:cond_0
const/4 v0, 0x2
new-array v0, v0, [F
const/4 v1, 0x0
iget-object v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-virtual {v2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getInterpolation()F
move-result v2
aput v2, v0, v1
const/4 v1, 0x1
if-eqz p1, :cond_1
const/high16 p1, 0x3f800000 # 1.0f
goto :goto_0
:cond_1
const/4 p1, 0x0
:goto_0
aput p1, v0, v1
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object p1
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$6;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$6;-><init>(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
invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private createCradleTranslationAnimation(ILjava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x2
new-array v0, v0, [F
const/4 v1, 0x0
iget-object v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->topEdgeTreatment:Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
invoke-virtual {v2}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getHorizontalOffset()F
move-result v2
aput v2, v0, v1
const/4 v1, 0x1
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)I
move-result p1
int-to-float p1, p1
aput p1, v0, v1
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object p1
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$2;-><init>(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
invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private createFabTranslationXAnimation(ILjava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [F
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)I
move-result p1
int-to-float p1, p1
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
invoke-virtual {p1, v0, v1}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private createFabTranslationYAnimation(ZLjava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
move-result-object v0
if-nez v0, :cond_0
return-void
:cond_0
const/4 v1, 0x1
new-array v1, v1, [F
const/4 v2, 0x0
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY(Z)F
move-result p1
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
invoke-virtual {p1, v0, v1}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private createMenuViewTranslationAnimation(IZLjava/util/List;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(IZ",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuView()Landroidx/appcompat/widget/ActionMenuView;
move-result-object v0
if-nez v0, :cond_0
return-void
:cond_0
const/4 v1, 0x1
new-array v2, v1, [F
const/high16 v3, 0x3f800000 # 1.0f
const/4 v4, 0x0
aput v3, v2, v4
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
iget-boolean v6, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
if-nez v6, :cond_1
if-eqz p2, :cond_2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z
move-result v6
if-eqz v6, :cond_2
:cond_1
iget v6, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
if-eq v6, v1, :cond_4
if-ne p1, v1, :cond_2
goto :goto_0
:cond_2
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuView;->getAlpha()F
move-result p1
cmpg-float p1, p1, v3
if-gez p1, :cond_3
invoke-interface {p3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_3
return-void
:cond_4
:goto_0
new-array v3, v1, [F
const/4 v6, 0x0
aput v6, v3, v4
invoke-static {v0, v5, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v3
new-instance v5, Lcom/google/android/material/bottomappbar/BottomAppBar$4;
invoke-direct {v5, p0, v0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar$4;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroidx/appcompat/widget/ActionMenuView;IZ)V
invoke-virtual {v3, v5}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
const-wide/16 v5, 0x96
invoke-virtual {p1, v5, v6}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
const/4 p2, 0x2
new-array p2, p2, [Landroid/animation/Animator;
aput-object v3, p2, v4
aput-object v2, p2, v1
invoke-virtual {p1, p2}, Landroid/animation/AnimatorSet;->playSequentially([Landroid/animation/Animator;)V
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
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_0
return-object v1
:cond_0
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
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
instance-of v3, v2, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
if-eqz v3, :cond_1
check-cast v2, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return-object v2
:cond_2
return-object v1
.end method
.method private getActionMenuView()Landroidx/appcompat/widget/ActionMenuView;
.locals 3
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/4 v0, 0x0
:goto_0
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildCount()I
move-result v1
if-ge v0, v1, :cond_1
invoke-virtual {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildAt(I)Landroid/view/View;
move-result-object v1
instance-of v2, v1, Landroidx/appcompat/widget/ActionMenuView;
if-eqz v2, :cond_0
check-cast v1, Landroidx/appcompat/widget/ActionMenuView;
return-object v1
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
return-object v0
.end method
.method private getFabTranslationX()F
.locals 1
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
.locals 3
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_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-ne p1, v2, :cond_2
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_1
const/4 v2, -0x1
:cond_1
mul-int p1, p1, v2
return p1
:cond_2
return v1
.end method
.method private getFabTranslationY()F
.locals 1
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
.locals 6
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_0
return v1
:cond_0
new-instance v2, Landroid/graphics/Rect;
invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V
invoke-virtual {v0, v2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContentRect(Landroid/graphics/Rect;)Z
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_1
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getMeasuredHeight()I
move-result v1
int-to-float v3, v1
:cond_1
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
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
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
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getPaddingBottom()I
move-result v0
int-to-float v0, v0
sub-float v0, v2, v0
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getMeasuredHeight()I
move-result v1
neg-int v1, v1
int-to-float v1, v1
if-eqz p1, :cond_2
move v0, v4
:cond_2
add-float/2addr v1, v0
return v1
.end method
.method private isAnimationRunning()Z
.locals 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z
move-result v0
if-nez v0, :cond_2
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z
move-result v0
if-nez v0, :cond_2
:cond_1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_3
invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z
move-result v0
if-eqz v0, :cond_3
:cond_2
const/4 v0, 0x1
return v0
:cond_3
const/4 v0, 0x0
return v0
.end method
.method private isVisibleFab()Z
.locals 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->isOrWillBeShown()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method private maybeAnimateAttachChange(Z)V
.locals 2
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
if-eqz p1, :cond_2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z
move-result v1
if-eqz v1, :cond_2
const/4 v1, 0x1
goto :goto_0
:cond_2
const/4 v1, 0x0
:goto_0
invoke-direct {p0, v1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createCradleShapeAnimation(ZLjava/util/List;)V
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabTranslationYAnimation(ZLjava/util/List;)V
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator;
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->attachAnimator:Landroid/animation/Animator;
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$5;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$5;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
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
.locals 3
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_2
const/4 p1, 0x0
const/4 p2, 0x0
:cond_2
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createMenuViewTranslationAnimation(IZLjava/util/List;)V
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
new-instance p2, Lcom/google/android/material/bottomappbar/BottomAppBar$3;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$3;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
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
.locals 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
if-eq v0, p1, :cond_2
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createCradleTranslationAnimation(ILjava/util/List;)V
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabTranslationXAnimation(ILjava/util/List;)V
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$1;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$1;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
invoke-virtual {p1}, Landroid/animation/Animator;->start()V
:cond_2
:goto_0
return-void
.end method
.method private removeFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
.locals 1
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
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
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
.locals 4
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
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
move-result-object v0
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_0
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z
move-result v2
if-eqz v2, :cond_0
const/high16 v2, 0x3f800000 # 1.0f
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
invoke-virtual {v1, v2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V
if-eqz v0, :cond_1
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
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
:cond_1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuView()Landroidx/appcompat/widget/ActionMenuView;
move-result-object v0
if-eqz v0, :cond_3
invoke-virtual {v0, v3}, Landroidx/appcompat/widget/ActionMenuView;->setAlpha(F)V
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isVisibleFab()Z
move-result v1
if-nez v1, :cond_2
const/4 v1, 0x0
invoke-direct {p0, v0, v1, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V
return-void
:cond_2
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_3
return-void
.end method
.method private translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V
.locals 8
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_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const/4 v3, 0x0
const/4 v4, 0x0
:goto_1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildCount()I
move-result v5
if-ge v3, v5, :cond_4
invoke-virtual {p0, v3}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getChildAt(I)Landroid/view/View;
move-result-object v5
invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v6
instance-of v6, v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;
if-eqz v6, :cond_1
invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v6
check-cast v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;
iget v6, v6, Landroidx/appcompat/widget/Toolbar$LayoutParams;->gravity:I
const v7, 0x800007
and-int/2addr v6, v7
const v7, 0x800003
if-ne v6, v7, :cond_1
const/4 v6, 0x1
goto :goto_2
:cond_1
const/4 v6, 0x0
:goto_2
if-eqz v6, :cond_3
if-eqz v0, :cond_2
invoke-virtual {v5}, Landroid/view/View;->getLeft()I
move-result v5
goto :goto_3
:cond_2
invoke-virtual {v5}, Landroid/view/View;->getRight()I
move-result v5
:goto_3
invoke-static {v4, v5}, Ljava/lang/Math;->max(II)I
move-result v4
:cond_3
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_4
if-eqz v0, :cond_5
invoke-virtual {p1}, Landroidx/appcompat/widget/ActionMenuView;->getRight()I
move-result v0
goto :goto_4
:cond_5
invoke-virtual {p1}, Landroidx/appcompat/widget/ActionMenuView;->getLeft()I
move-result v0
:goto_4
sub-int/2addr v4, v0
if-ne p2, v2, :cond_6
if-eqz p3, :cond_6
int-to-float p2, v4
goto :goto_5
:cond_6
const/4 p2, 0x0
:goto_5
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/ActionMenuView;->setTranslationX(F)V
return-void
.end method
# virtual methods
.method public getBackgroundTint()Landroid/content/res/ColorStateList;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
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;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior<",
"Lcom/google/android/material/bottomappbar/BottomAppBar;",
">;"
}
.end annotation
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
invoke-direct {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;-><init>()V
return-object v0
.end method
.method public getCradleVerticalOffset()F
.locals 1
.annotation build Landroidx/annotation/Dimension;
.end annotation
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
.locals 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
return v0
.end method
.method public getFabCradleMargin()F
.locals 1
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
.locals 1
.annotation build Landroidx/annotation/Dimension;
.end annotation
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
.locals 1
iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z
return v0
.end method
.method public onLayout(ZIIII)V
.locals 0
invoke-super/range {p0 .. p5}, Landroidx/appcompat/widget/Toolbar;->onLayout(ZIIII)V
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->cancelAnimations()V
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V
return-void
.end method
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
.locals 1
instance-of v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;
if-nez v0, :cond_0
invoke-super {p0, p1}, Landroidx/appcompat/widget/Toolbar;->onRestoreInstanceState(Landroid/os/Parcelable;)V
return-void
:cond_0
check-cast p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;
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
iget v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I
iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
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 public onSaveInstanceState()Landroid/os/Parcelable;
.locals 2
invoke-super {p0}, Landroidx/appcompat/widget/Toolbar;->onSaveInstanceState()Landroid/os/Parcelable;
move-result-object v0
new-instance v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;
invoke-direct {v1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;-><init>(Landroid/os/Parcelable;)V
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
iput v0, v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I
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
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/MenuRes;
.end annotation
.end param
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
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
.locals 1
.param p1 # Landroid/content/res/ColorStateList;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
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
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/Dimension;
.end annotation
.end param
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getCradleVerticalOffset()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
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
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_0
return-void
.end method
.method public setFabAlignmentMode(I)V
.locals 1
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateModeChange(I)V
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
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
return-void
.end method
.method public setFabCradleMargin(F)V
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/Dimension;
.end annotation
.end param
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleMargin()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
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
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_0
return-void
.end method
.method public setFabCradleRoundedCornerRadius(F)V
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/Dimension;
.end annotation
.end param
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleRoundedCornerRadius()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
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
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_0
return-void
.end method
.method setFabDiameter(I)V
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/Px;
.end annotation
.end param
int-to-float p1, p1
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_0
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
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_0
return-void
.end method
.method public setHideOnScroll(Z)V
.locals 0
iput-boolean p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z
return-void
.end method
.method public setSubtitle(Ljava/lang/CharSequence;)V
.locals 0
return-void
.end method
.method public setTitle(Ljava/lang/CharSequence;)V
.locals 0
return-void
.end method