2022-06-10 21:38:30 +09:00

2451 lines
70 KiB
Smali

.class public Lcom/google/android/material/bottomappbar/BottomAppBar;
.super Landroidx/appcompat/widget/Toolbar;
.source "BottomAppBar.java"
# interfaces
.implements Landroidx/coordinatorlayout/widget/CoordinatorLayout$b;
# 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$AnimationListener;,
Lcom/google/android/material/bottomappbar/BottomAppBar$FabAnimationMode;,
Lcom/google/android/material/bottomappbar/BottomAppBar$FabAlignmentMode;
}
.end annotation
# static fields
.field private static final ANIMATION_DURATION:J = 0x12cL
.field private static final DEF_STYLE_RES:I
.field public static final FAB_ALIGNMENT_MODE_CENTER:I = 0x0
.field public static final FAB_ALIGNMENT_MODE_END:I = 0x1
.field public static final FAB_ANIMATION_MODE_SCALE:I = 0x0
.field public static final FAB_ANIMATION_MODE_SLIDE:I = 0x1
.field private static final NO_MENU_RES_ID:I
# instance fields
.field private animatingModeChangeCounter:I
.field private animationListeners:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;",
">;"
}
.end annotation
.end field
.field private behavior:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
.field private bottomInset:I
.field private fabAlignmentMode:I
.field public fabAnimationListener:Landroid/animation/AnimatorListenerAdapter;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private fabAnimationMode:I
.field private fabAttached:Z
.field private final fabOffsetEndMode:I
.field public fabTransformationCallback:Lcom/google/android/material/animation/TransformationCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/material/animation/TransformationCallback<",
"Lcom/google/android/material/floatingactionbutton/FloatingActionButton;",
">;"
}
.end annotation
.end field
.field private hideOnScroll:Z
.field private leftInset:I
.field private final materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
.field private menuAnimatingWithFabAlignmentMode:Z
.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 paddingBottomSystemWindowInsets:Z
.field private final paddingLeftSystemWindowInsets:Z
.field private final paddingRightSystemWindowInsets:Z
.field private pendingMenuResId:I
.annotation build Landroidx/annotation/MenuRes;
.end annotation
.end field
.field private rightInset:I
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
sget v0, Lcom/google/android/material/R$style;->Widget_MaterialComponents_BottomAppBar:I
sput v0, Lcom/google/android/material/bottomappbar/BottomAppBar;->DEF_STYLE_RES:I
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
const/4 v1, 0x0
.line 1
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 p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 2
sget v0, Lcom/google/android/material/R$attr;->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 10
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 3
sget v6, Lcom/google/android/material/bottomappbar/BottomAppBar;->DEF_STYLE_RES:I
invoke-static {p1, p2, p3, v6}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->wrap(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
move-result-object p1
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/Toolbar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 4
new-instance p1, Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-direct {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>()V
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
const/4 v7, 0x0
.line 5
iput v7, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animatingModeChangeCounter:I
.line 6
iput v7, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->pendingMenuResId:I
.line 7
iput-boolean v7, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimatingWithFabAlignmentMode:Z
const/4 v0, 0x1
.line 8
iput-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
.line 9
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
iput-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationListener:Landroid/animation/AnimatorListenerAdapter;
.line 10
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
iput-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabTransformationCallback:Lcom/google/android/material/animation/TransformationCallback;
.line 11
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v8
.line 12
sget-object v2, Lcom/google/android/material/R$styleable;->BottomAppBar:[I
new-array v5, v7, [I
move-object v0, v8
move-object v1, p2
move v3, p3
move v4, v6
.line 13
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
move-result-object v0
.line 14
sget v1, Lcom/google/android/material/R$styleable;->BottomAppBar_backgroundTint:I
.line 15
invoke-static {v8, v0, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
move-result-object v1
.line 16
sget v2, Lcom/google/android/material/R$styleable;->BottomAppBar_elevation:I
invoke-virtual {v0, v2, v7}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v2
.line 17
sget v3, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleMargin:I
invoke-virtual {v0, v3, v7}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v3
int-to-float v3, v3
.line 18
sget v4, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleRoundedCornerRadius:I
.line 19
invoke-virtual {v0, v4, v7}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v4
int-to-float v4, v4
.line 20
sget v5, Lcom/google/android/material/R$styleable;->BottomAppBar_fabCradleVerticalOffset:I
.line 21
invoke-virtual {v0, v5, v7}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v5
int-to-float v5, v5
.line 22
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_fabAlignmentMode:I
.line 23
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v9
iput v9, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
.line 24
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_fabAnimationMode:I
.line 25
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v9
iput v9, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationMode:I
.line 26
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_hideOnScroll:I
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v9
iput-boolean v9, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z
.line 27
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_paddingBottomSystemWindowInsets:I
.line 28
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v9
iput-boolean v9, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingBottomSystemWindowInsets:Z
.line 29
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_paddingLeftSystemWindowInsets:I
.line 30
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v9
iput-boolean v9, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingLeftSystemWindowInsets:Z
.line 31
sget v9, Lcom/google/android/material/R$styleable;->BottomAppBar_paddingRightSystemWindowInsets:I
.line 32
invoke-virtual {v0, v9, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v7
iput-boolean v7, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingRightSystemWindowInsets:Z
.line 33
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
.line 34
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
move-result-object v0
sget v7, Lcom/google/android/material/R$dimen;->mtrl_bottomappbar_fabOffsetEndMode:I
invoke-virtual {v0, v7}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
move-result v0
iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabOffsetEndMode:I
.line 35
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
invoke-direct {v0, v3, v4, v5}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;-><init>(FFF)V
.line 36
invoke-static {}, Lcom/google/android/material/shape/ShapeAppearanceModel;->builder()Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
move-result-object v3
invoke-virtual {v3, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->setTopEdge(Lcom/google/android/material/shape/EdgeTreatment;)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->build()Lcom/google/android/material/shape/ShapeAppearanceModel;
move-result-object v0
.line 37
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
const/4 v0, 0x2
.line 38
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setShadowCompatibilityMode(I)V
.line 39
sget-object v0, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setPaintStyle(Landroid/graphics/Paint$Style;)V
.line 40
invoke-virtual {p1, v8}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
int-to-float v0, v2
.line 41
invoke-virtual {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setElevation(F)V
.line 42
invoke-static {p1, v1}, Ld1/c;->o(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
.line 43
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
.line 44
new-instance p1, Lcom/google/android/material/bottomappbar/BottomAppBar$3;
invoke-direct {p1, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$3;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-static {p0, p2, p3, v6, p1}, Lcom/google/android/material/internal/ViewUtils;->doOnApplyWindowInsets(Landroid/view/View;Landroid/util/AttributeSet;IILcom/google/android/material/internal/ViewUtils$OnApplyWindowInsetsListener;)V
return-void
.end method
.method public static synthetic access$000(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimatingWithFabAlignmentMode:Z
return p0
.end method
.method public static synthetic access$002(Lcom/google/android/material/bottomappbar/BottomAppBar;Z)Z
.locals 0
.line 1
iput-boolean p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimatingWithFabAlignmentMode:Z
return p1
.end method
.method public static synthetic access$100(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
return p0
.end method
.method public static synthetic access$1000(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingRightSystemWindowInsets:Z
return p0
.end method
.method public static synthetic access$1100(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->rightInset:I
return p0
.end method
.method public static synthetic access$1102(Lcom/google/android/material/bottomappbar/BottomAppBar;I)I
.locals 0
.line 1
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->rightInset:I
return p1
.end method
.method public static synthetic access$1200(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->cancelAnimations()V
return-void
.end method
.method public static synthetic access$1300(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V
return-void
.end method
.method public static synthetic access$1400(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setActionMenuViewPosition()V
return-void
.end method
.method public static synthetic access$1500(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->dispatchAnimationStart()V
return-void
.end method
.method public static synthetic access$1600(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->dispatchAnimationEnd()V
return-void
.end method
.method public static synthetic access$1702(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroid/animation/Animator;)Landroid/animation/Animator;
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
return-object p1
.end method
.method public static synthetic access$1800(Lcom/google/android/material/bottomappbar/BottomAppBar;I)F
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)F
move-result p0
return p0
.end method
.method public static synthetic access$1902(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroid/animation/Animator;)Landroid/animation/Animator;
.locals 0
.line 1
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
return-object p1
.end method
.method public static synthetic access$200(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
return p0
.end method
.method public static synthetic access$2000(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->pendingMenuResId:I
return p0
.end method
.method public static synthetic access$2100(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroidx/appcompat/widget/ActionMenuView;IZZ)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZZ)V
return-void
.end method
.method public static synthetic access$2200(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.locals 0
.line 1
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 public static synthetic access$2300(Lcom/google/android/material/bottomappbar/BottomAppBar;)F
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX()F
move-result p0
return p0
.end method
.method public static synthetic access$2700(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getBottomInset()I
move-result p0
return p0
.end method
.method public static synthetic access$2800(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getLeftInset()I
move-result p0
return p0
.end method
.method public static synthetic access$2900(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getRightInset()I
move-result p0
return p0
.end method
.method public static synthetic access$300(Lcom/google/android/material/bottomappbar/BottomAppBar;IZ)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateMenuView(IZ)V
return-void
.end method
.method public static synthetic access$3000(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabOffsetEndMode:I
return p0
.end method
.method public static synthetic access$3100(Lcom/google/android/material/bottomappbar/BottomAppBar;)Landroid/view/View;
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentView()Landroid/view/View;
move-result-object p0
return-object p0
.end method
.method public static synthetic access$3200(Lcom/google/android/material/bottomappbar/BottomAppBar;Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->addFabAnimationListeners(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
return-void
.end method
.method public static synthetic access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
return-object p0
.end method
.method public static synthetic access$500(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object p0
return-object p0
.end method
.method public static synthetic access$600(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingBottomSystemWindowInsets:Z
return p0
.end method
.method public static synthetic access$702(Lcom/google/android/material/bottomappbar/BottomAppBar;I)I
.locals 0
.line 1
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->bottomInset:I
return p1
.end method
.method public static synthetic access$800(Lcom/google/android/material/bottomappbar/BottomAppBar;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->paddingLeftSystemWindowInsets:Z
return p0
.end method
.method public static synthetic access$900(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
.locals 0
.line 1
iget p0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->leftInset:I
return p0
.end method
.method public static synthetic access$902(Lcom/google/android/material/bottomappbar/BottomAppBar;I)I
.locals 0
.line 1
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->leftInset:I
return p1
.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
.line 1
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 2
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$9;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$9;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->addOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
.line 3
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabTransformationCallback:Lcom/google/android/material/animation/TransformationCallback;
invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->addTransformationCallback(Lcom/google/android/material/animation/TransformationCallback;)V
return-void
.end method
.method private cancelAnimations()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
.line 3
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
.line 4
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
:cond_1
return-void
.end method
.method private createFabTranslationXAnimation(ILjava/util/List;)V
.locals 3
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
.line 1
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)F
move-result 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
.line 2
invoke-virtual {p1, v0, v1}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
.line 3
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private createMenuViewTranslationAnimation(IZLjava/util/List;)V
.locals 8
.param p3 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(IZ",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
.line 1
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/4 v3, 0x0
const/high16 v4, 0x3f800000 # 1.0f
aput v4, v2, v3
const-string v5, "alpha"
.line 2
invoke-static {v0, v5, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v2
.line 3
invoke-virtual {v0}, Landroid/view/ViewGroup;->getTranslationX()F
move-result v6
.line 4
invoke-virtual {p0, v0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuViewTranslationX(Landroidx/appcompat/widget/ActionMenuView;IZ)I
move-result v7
int-to-float v7, v7
sub-float/2addr v6, v7
.line 5
invoke-static {v6}, Ljava/lang/Math;->abs(F)F
move-result v6
cmpl-float v6, v6, v4
if-lez v6, :cond_1
new-array v4, v1, [F
const/4 v6, 0x0
aput v6, v4, v3
.line 6
invoke-static {v0, v5, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object v4
.line 7
new-instance v5, Lcom/google/android/material/bottomappbar/BottomAppBar$7;
invoke-direct {v5, p0, v0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar$7;-><init>(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 8
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
const-wide/16 v5, 0x96
.line 9
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 v4, p2, v3
aput-object v2, p2, v1
.line 10
invoke-virtual {p1, p2}, Landroid/animation/AnimatorSet;->playSequentially([Landroid/animation/Animator;)V
.line 11
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 12
:cond_1
invoke-virtual {v0}, Landroid/view/ViewGroup;->getAlpha()F
move-result p1
cmpg-float p1, p1, v4
if-gez p1, :cond_2
.line 13
invoke-interface {p3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_2
:goto_0
return-void
.end method
.method private dispatchAnimationEnd()V
.locals 2
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animatingModeChangeCounter:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animatingModeChangeCounter:I
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;
.line 3
invoke-interface {v1, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;->onAnimationEnd(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
goto :goto_0
:cond_0
return-void
.end method
.method private dispatchAnimationStart()V
.locals 2
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animatingModeChangeCounter:I
add-int/lit8 v1, v0, 0x1
iput v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animatingModeChangeCounter:I
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;
.line 3
invoke-interface {v1, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;->onAnimationStart(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
goto :goto_0
:cond_0
return-void
.end method
.method private findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.locals 2
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentView()Landroid/view/View;
move-result-object v0
.line 2
instance-of v1, v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
if-eqz v1, :cond_0
check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method private findDependentView()Landroid/view/View;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
invoke-virtual {p0}, Landroid/view/ViewGroup;->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
.line 2
:cond_0
invoke-virtual {p0}, Landroid/view/ViewGroup;->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 3
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_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
.line 4
instance-of v3, v2, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
if-nez v3, :cond_2
instance-of v3, v2, Lcom/google/android/material/floatingactionbutton/ExtendedFloatingActionButton;
if-eqz v3, :cond_1
:cond_2
return-object v2
:cond_3
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
.line 1
:goto_0
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v1
if-ge v0, v1, :cond_1
.line 2
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v1
.line 3
instance-of v2, v1, Landroidx/appcompat/widget/ActionMenuView;
if-eqz v2, :cond_0
.line 4
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 getBottomInset()I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->bottomInset:I
return v0
.end method
.method private getFabTranslationX()F
.locals 1
.line 5
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
invoke-direct {p0, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX(I)F
move-result v0
return v0
.end method
.method private getFabTranslationX(I)F
.locals 3
.line 1
invoke-static {p0}, Lcom/google/android/material/internal/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
move-result v0
const/4 v1, 0x1
if-ne p1, v1, :cond_2
if-eqz v0, :cond_0
.line 2
iget p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->leftInset:I
goto :goto_0
:cond_0
iget p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->rightInset:I
.line 3
:goto_0
iget v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabOffsetEndMode:I
add-int/2addr v2, p1
.line 4
invoke-virtual {p0}, Landroid/view/ViewGroup;->getMeasuredWidth()I
move-result p1
div-int/lit8 p1, p1, 0x2
sub-int/2addr p1, v2
if-eqz v0, :cond_1
const/4 v1, -0x1
:cond_1
mul-int/2addr p1, v1
int-to-float p1, p1
return p1
:cond_2
const/4 p1, 0x0
return p1
.end method
.method private getFabTranslationY()F
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getCradleVerticalOffset()F
move-result v0
neg-float v0, v0
return v0
.end method
.method private getLeftInset()I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->leftInset:I
return v0
.end method
.method private getRightInset()I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->rightInset:I
return v0
.end method
.method private getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
.line 2
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/shape/ShapeAppearanceModel;->getTopEdge()Lcom/google/android/material/shape/EdgeTreatment;
move-result-object v0
check-cast v0, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
return-object v0
.end method
.method private isFabVisibleOrWillBeShown()Z
.locals 1
.line 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
.line 2
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->isOrWillBeShown()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method private maybeAnimateMenuView(IZ)V
.locals 3
.line 1
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U0(Landroid/view/View;)Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
.line 2
iput-boolean v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimatingWithFabAlignmentMode:Z
.line 3
iget p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->pendingMenuResId:I
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->replaceMenu(I)V
return-void
.line 4
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
.line 5
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
.line 6
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 7
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isFabVisibleOrWillBeShown()Z
move-result v2
if-nez v2, :cond_2
move p1, v1
move p2, p1
.line 8
:cond_2
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createMenuViewTranslationAnimation(IZLjava/util/List;)V
.line 9
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
.line 10
invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
.line 11
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
.line 12
new-instance p2, Lcom/google/android/material/bottomappbar/BottomAppBar$6;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$6;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 13
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 3
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
if-eq v0, p1, :cond_3
invoke-static {p0}, Landroidx/core/view/ViewCompat;->U0(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_0
goto :goto_1
.line 2
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
if-eqz v0, :cond_1
.line 3
invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V
.line 4
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 5
iget v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationMode:I
const/4 v2, 0x1
if-ne v1, v2, :cond_2
.line 6
invoke-direct {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabTranslationXAnimation(ILjava/util/List;)V
goto :goto_0
.line 7
:cond_2
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->createFabDefaultXAnimation(ILjava/util/List;)V
.line 8
:goto_0
new-instance p1, Landroid/animation/AnimatorSet;
invoke-direct {p1}, Landroid/animation/AnimatorSet;-><init>()V
.line 9
invoke-virtual {p1, v0}, Landroid/animation/AnimatorSet;->playTogether(Ljava/util/Collection;)V
.line 10
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
.line 11
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$4;
invoke-direct {v0, p0}, Lcom/google/android/material/bottomappbar/BottomAppBar$4;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 12
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->modeAnimator:Landroid/animation/Animator;
invoke-virtual {p1}, Landroid/animation/Animator;->start()V
:cond_3
:goto_1
return-void
.end method
.method private setActionMenuViewPosition()V
.locals 3
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getActionMenuView()Landroidx/appcompat/widget/ActionMenuView;
move-result-object v0
if-eqz v0, :cond_1
.line 2
iget-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimator:Landroid/animation/Animator;
if-nez v1, :cond_1
const/high16 v1, 0x3f800000 # 1.0f
.line 3
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setAlpha(F)V
.line 4
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isFabVisibleOrWillBeShown()Z
move-result v1
if-nez v1, :cond_0
const/4 v1, 0x0
.line 5
invoke-direct {p0, v0, v1, v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V
goto :goto_0
.line 6
:cond_0
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_1
:goto_0
return-void
.end method
.method private setCutoutState()V
.locals 3
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
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 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentView()Landroid/view/View;
move-result-object v0
.line 3
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
if-eqz v2, :cond_0
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->isFabVisibleOrWillBeShown()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
.line 4
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationY()F
move-result v1
invoke-virtual {v0, v1}, Landroid/view/View;->setTranslationY(F)V
.line 5
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabTranslationX()F
move-result v1
invoke-virtual {v0, v1}, Landroid/view/View;->setTranslationX(F)V
:cond_1
return-void
.end method
.method private translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZ)V
.locals 1
.param p1 # Landroidx/appcompat/widget/ActionMenuView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, p3, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZZ)V
return-void
.end method
.method private translateActionMenuView(Landroidx/appcompat/widget/ActionMenuView;IZZ)V
.locals 1
.param p1 # Landroidx/appcompat/widget/ActionMenuView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 2
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$8;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/google/android/material/bottomappbar/BottomAppBar$8;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;Landroidx/appcompat/widget/ActionMenuView;IZ)V
if-eqz p4, :cond_0
.line 3
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
goto :goto_0
.line 4
:cond_0
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
:goto_0
return-void
.end method
# virtual methods
.method public addAnimationListener(Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;)V
.locals 1
.param p1 # Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
if-nez v0, :cond_0
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
.line 3
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public createFabDefaultXAnimation(ILjava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Landroid/animation/Animator;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->findDependentFab()Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
move-result-object p2
if-eqz p2, :cond_1
.line 2
invoke-virtual {p2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->isOrWillBeHidden()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 3
:cond_0
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->dispatchAnimationStart()V
.line 4
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$5;
invoke-direct {v0, p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar$5;-><init>(Lcom/google/android/material/bottomappbar/BottomAppBar;I)V
invoke-virtual {p2, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
:cond_1
:goto_0
return-void
.end method
.method public getActionMenuViewTranslationX(Landroidx/appcompat/widget/ActionMenuView;IZ)I
.locals 6
.param p1 # Landroidx/appcompat/widget/ActionMenuView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x1
const/4 v1, 0x0
if-ne p2, v0, :cond_8
if-nez p3, :cond_0
goto/16 :goto_6
.line 1
:cond_0
invoke-static {p0}, Lcom/google/android/material/internal/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
move-result p2
if-eqz p2, :cond_1
.line 2
invoke-virtual {p0}, Landroid/view/ViewGroup;->getMeasuredWidth()I
move-result p3
goto :goto_0
:cond_1
move p3, v1
:goto_0
move v2, v1
.line 3
:goto_1
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v3
if-ge v2, v3, :cond_5
.line 4
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v3
.line 5
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v4
instance-of v4, v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;
if-eqz v4, :cond_2
.line 6
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v4
check-cast v4, Landroidx/appcompat/widget/Toolbar$LayoutParams;
iget v4, v4, Landroidx/appcompat/app/ActionBar$LayoutParams;->a:I
const v5, 0x800007
and-int/2addr v4, v5
const v5, 0x800003
if-ne v4, v5, :cond_2
move v4, v0
goto :goto_2
:cond_2
move v4, v1
:goto_2
if-eqz v4, :cond_4
if-eqz p2, :cond_3
.line 7
invoke-virtual {v3}, Landroid/view/View;->getLeft()I
move-result v3
invoke-static {p3, v3}, Ljava/lang/Math;->min(II)I
move-result p3
goto :goto_3
.line 8
:cond_3
invoke-virtual {v3}, Landroid/view/View;->getRight()I
move-result v3
invoke-static {p3, v3}, Ljava/lang/Math;->max(II)I
move-result p3
:cond_4
:goto_3
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_5
if-eqz p2, :cond_6
.line 9
invoke-virtual {p1}, Landroid/view/ViewGroup;->getRight()I
move-result p1
goto :goto_4
:cond_6
invoke-virtual {p1}, Landroid/view/ViewGroup;->getLeft()I
move-result p1
:goto_4
if-eqz p2, :cond_7
.line 10
iget p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->rightInset:I
goto :goto_5
:cond_7
iget p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->leftInset:I
neg-int p2, p2
:goto_5
add-int/2addr p1, p2
sub-int/2addr p3, p1
return p3
:cond_8
:goto_6
return v1
.end method
.method public getBackgroundTint()Landroid/content/res/ColorStateList;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
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 bridge synthetic getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getBehavior()Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
move-result-object v0
return-object v0
.end method
.method public getBehavior()Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->behavior:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
if-nez v0, :cond_0
.line 3
new-instance v0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
invoke-direct {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;-><init>()V
iput-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->behavior:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
.line 4
:cond_0
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->behavior:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
return-object v0
.end method
.method public getCradleVerticalOffset()F
.locals 1
.annotation build Landroidx/annotation/Dimension;
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getCradleVerticalOffset()F
move-result v0
return v0
.end method
.method public getFabAlignmentMode()I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
return v0
.end method
.method public getFabAnimationMode()I
.locals 1
.line 1
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationMode:I
return v0
.end method
.method public getFabCradleMargin()F
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
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
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getFabCradleRoundedCornerRadius()F
move-result v0
return v0
.end method
.method public getHideOnScroll()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->hideOnScroll:Z
return v0
.end method
.method public onAttachedToWindow()V
.locals 2
.line 1
invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V
.line 2
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-static {p0, v0}, Lcom/google/android/material/shape/MaterialShapeUtils;->setParentAbsoluteElevation(Landroid/view/View;Lcom/google/android/material/shape/MaterialShapeDrawable;)V
.line 3
invoke-virtual {p0}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;
move-result-object v0
instance-of v0, v0, Landroid/view/ViewGroup;
if-eqz v0, :cond_0
.line 4
invoke-virtual {p0}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setClipChildren(Z)V
:cond_0
return-void
.end method
.method public onLayout(ZIIII)V
.locals 0
.line 1
invoke-super/range {p0 .. p5}, Landroidx/appcompat/widget/Toolbar;->onLayout(ZIIII)V
if-eqz p1, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->cancelAnimations()V
.line 3
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V
.line 4
:cond_0
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setActionMenuViewPosition()V
return-void
.end method
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
.locals 1
.line 1
instance-of v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;
if-nez v0, :cond_0
.line 2
invoke-super {p0, p1}, Landroidx/appcompat/widget/Toolbar;->onRestoreInstanceState(Landroid/os/Parcelable;)V
return-void
.line 3
:cond_0
check-cast p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;
.line 4
invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
move-result-object v0
invoke-super {p0, v0}, Landroidx/appcompat/widget/Toolbar;->onRestoreInstanceState(Landroid/os/Parcelable;)V
.line 5
iget v0, p1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I
iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
.line 6
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
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Landroidx/appcompat/widget/Toolbar;->onSaveInstanceState()Landroid/os/Parcelable;
move-result-object v0
.line 2
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
.line 3
iget v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
iput v0, v1, Lcom/google/android/material/bottomappbar/BottomAppBar$SavedState;->fabAlignmentMode:I
.line 4
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 performHide()V
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getBehavior()Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/google/android/material/behavior/HideBottomViewOnScrollBehavior;->slideDown(Landroid/view/View;)V
return-void
.end method
.method public performShow()V
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getBehavior()Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/google/android/material/behavior/HideBottomViewOnScrollBehavior;->slideUp(Landroid/view/View;)V
return-void
.end method
.method public removeAnimationListener(Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;)V
.locals 1
.param p1 # Lcom/google/android/material/bottomappbar/BottomAppBar$AnimationListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->animationListeners:Ljava/util/ArrayList;
if-nez v0, :cond_0
return-void
.line 2
:cond_0
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
return-void
.end method
.method public replaceMenu(I)V
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/MenuRes;
.end annotation
.end param
if-eqz p1, :cond_0
const/4 v0, 0x0
.line 1
iput v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->pendingMenuResId:I
.line 2
invoke-virtual {p0}, Landroidx/appcompat/widget/Toolbar;->getMenu()Landroid/view/Menu;
move-result-object v0
invoke-interface {v0}, Landroid/view/Menu;->clear()V
.line 3
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/Toolbar;->inflateMenu(I)V
:cond_0
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
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-static {v0, p1}, Ld1/c;->o(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
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getCradleVerticalOffset()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setCradleVerticalOffset(F)V
.line 3
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
.line 4
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setCutoutState()V
:cond_0
return-void
.end method
.method public setElevation(F)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setElevation(F)V
.line 2
iget-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->materialShapeDrawable:Lcom/google/android/material/shape/MaterialShapeDrawable;
.line 3
invoke-virtual {p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->getShadowRadius()I
move-result p1
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;->getShadowOffsetY()I
move-result v0
sub-int/2addr p1, v0
.line 4
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getBehavior()Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/google/android/material/behavior/HideBottomViewOnScrollBehavior;->setAdditionalHiddenOffsetY(Landroid/view/View;I)V
return-void
.end method
.method public setFabAlignmentMode(I)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setFabAlignmentModeAndReplaceMenu(II)V
return-void
.end method
.method public setFabAlignmentModeAndReplaceMenu(II)V
.locals 0
.param p2 # I
.annotation build Landroidx/annotation/MenuRes;
.end annotation
.end param
.line 1
iput p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->pendingMenuResId:I
const/4 p2, 0x1
.line 2
iput-boolean p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->menuAnimatingWithFabAlignmentMode:Z
.line 3
iget-boolean p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAttached:Z
invoke-direct {p0, p1, p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateMenuView(IZ)V
.line 4
invoke-direct {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->maybeAnimateModeChange(I)V
.line 5
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAlignmentMode:I
return-void
.end method
.method public setFabAnimationMode(I)V
.locals 0
.line 1
iput p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar;->fabAnimationMode:I
return-void
.end method
.method public setFabCradleMargin(F)V
.locals 1
.param p1 # F
.annotation build Landroidx/annotation/Dimension;
.end annotation
.end param
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleMargin()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabCradleMargin(F)V
.line 3
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
.line 1
invoke-virtual {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getFabCradleRoundedCornerRadius()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabCradleRoundedCornerRadius(F)V
.line 3
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 setFabDiameter(I)Z
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/Px;
.end annotation
.end param
int-to-float p1, p1
.line 1
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getFabDiameter()F
move-result v0
cmpl-float v0, p1, v0
if-eqz v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->getTopEdgeTreatment()Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setFabDiameter(F)V
.line 3
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
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public setHideOnScroll(Z)V
.locals 0
.line 1
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