231 lines
8.0 KiB
Smali
231 lines
8.0 KiB
Smali
.class Lcom/google/android/material/bottomappbar/BottomAppBar$2;
|
|
.super Ljava/lang/Object;
|
|
.source "BottomAppBar.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/animation/TransformationCallback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/google/android/material/animation/TransformationCallback<",
|
|
"Lcom/google/android/material/floatingactionbutton/FloatingActionButton;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/bottomappbar/BottomAppBar;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic onScaleChanged(Landroid/view/View;)V
|
|
.locals 0
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->onScaleChanged(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onScaleChanged(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getScaleY()F
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic onTranslationChanged(Landroid/view/View;)V
|
|
.locals 0
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
check-cast p1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->onTranslationChanged(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTranslationChanged(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
.locals 3
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getTranslationX()F
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$500(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getHorizontalOffset()F
|
|
|
|
move-result v1
|
|
|
|
cmpl-float v1, v1, v0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v1}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$500(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setHorizontalOffset(F)V
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getTranslationY()F
|
|
|
|
move-result v0
|
|
|
|
neg-float v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v0
|
|
|
|
.line 7
|
|
iget-object v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$500(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->getCradleVerticalOffset()F
|
|
|
|
move-result v2
|
|
|
|
cmpl-float v2, v2, v0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 8
|
|
iget-object v2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$500(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Lcom/google/android/material/bottomappbar/BottomAppBarTopEdgeTreatment;->setCradleVerticalOffset(F)V
|
|
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->invalidateSelf()V
|
|
|
|
.line 10
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$2;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$400(Lcom/google/android/material/bottomappbar/BottomAppBar;)Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getVisibility()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageButton;->getScaleY()F
|
|
|
|
move-result v1
|
|
|
|
.line 12
|
|
:cond_2
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setInterpolation(F)V
|
|
|
|
return-void
|
|
.end method
|