197 lines
6.1 KiB
Smali
197 lines
6.1 KiB
Smali
.class Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;
|
|
.super Ljava/lang/Object;
|
|
.source "BottomAppBar.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnLayoutChangeListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onLayoutChange(Landroid/view/View;IIIIIIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p2, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;->access$2400(Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;)Ljava/lang/ref/WeakReference;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/android/material/bottomappbar/BottomAppBar;
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 2
|
|
instance-of p3, p1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_0
|
|
move-object p3, p1
|
|
|
|
check-cast p3, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
.line 4
|
|
iget-object p4, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
invoke-static {p4}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;->access$2500(Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;)Landroid/graphics/Rect;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p3, p4}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getMeasuredContentRect(Landroid/graphics/Rect;)V
|
|
|
|
.line 5
|
|
iget-object p4, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
invoke-static {p4}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;->access$2500(Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;)Landroid/graphics/Rect;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p4}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result p4
|
|
|
|
.line 6
|
|
invoke-virtual {p2, p4}, Lcom/google/android/material/bottomappbar/BottomAppBar;->setFabDiameter(I)Z
|
|
|
|
.line 7
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
|
|
|
|
.line 8
|
|
iget-object p5, p0, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior$1;->this$0:Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;
|
|
|
|
invoke-static {p5}, Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;->access$2600(Lcom/google/android/material/bottomappbar/BottomAppBar$Behavior;)I
|
|
|
|
move-result p5
|
|
|
|
if-nez p5, :cond_2
|
|
|
|
.line 9
|
|
invoke-virtual {p3}, Landroid/widget/ImageButton;->getMeasuredHeight()I
|
|
|
|
move-result p5
|
|
|
|
sub-int/2addr p5, p4
|
|
|
|
div-int/lit8 p5, p5, 0x2
|
|
|
|
.line 10
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p4
|
|
|
|
sget p6, Lcom/google/android/material/R$dimen;->mtrl_bottomappbar_fab_bottom_margin:I
|
|
|
|
.line 11
|
|
invoke-virtual {p4, p6}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I
|
|
|
|
move-result p4
|
|
|
|
sub-int/2addr p4, p5
|
|
|
|
.line 12
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$2700(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
|
|
|
|
move-result p5
|
|
|
|
add-int/2addr p5, p4
|
|
|
|
iput p5, p1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
.line 13
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$2800(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
|
|
|
|
move-result p4
|
|
|
|
iput p4, p1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
.line 14
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$2900(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
|
|
|
|
move-result p4
|
|
|
|
iput p4, p1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
.line 15
|
|
invoke-static {p3}, Lcom/google/android/material/internal/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 16
|
|
iget p3, p1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$3000(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
iput p2, p1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_1
|
|
iget p3, p1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
invoke-static {p2}, Lcom/google/android/material/bottomappbar/BottomAppBar;->access$3000(Lcom/google/android/material/bottomappbar/BottomAppBar;)I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
iput p2, p1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 18
|
|
:cond_3
|
|
:goto_1
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->removeOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|