124 lines
3.2 KiB
Smali
124 lines
3.2 KiB
Smali
.class Lcom/google/android/material/bottomnavigation/BottomNavigationView$2;
|
|
.super Ljava/lang/Object;
|
|
.source "BottomNavigationView.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/internal/ViewUtils$OnApplyWindowInsetsListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/google/android/material/bottomnavigation/BottomNavigationView;->applyWindowInsets()V
|
|
.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/bottomnavigation/BottomNavigationView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/bottomnavigation/BottomNavigationView;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/bottomnavigation/BottomNavigationView$2;->this$0:Lcom/google/android/material/bottomnavigation/BottomNavigationView;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;Lcom/google/android/material/internal/ViewUtils$RelativePadding;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 5
|
|
.param p2 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Lcom/google/android/material/internal/ViewUtils$RelativePadding;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->bottom:I
|
|
|
|
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->o()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->bottom:I
|
|
|
|
.line 2
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->Z(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
:goto_0
|
|
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->p()I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Landroidx/core/view/WindowInsetsCompat;->q()I
|
|
|
|
move-result v2
|
|
|
|
.line 5
|
|
iget v3, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->start:I
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move v4, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v4, v0
|
|
|
|
:goto_1
|
|
add-int/2addr v3, v4
|
|
|
|
iput v3, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->start:I
|
|
|
|
.line 6
|
|
iget v3, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->end:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v0, v2
|
|
|
|
:goto_2
|
|
add-int/2addr v3, v0
|
|
|
|
iput v3, p3, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->end:I
|
|
|
|
.line 7
|
|
invoke-virtual {p3, p1}, Lcom/google/android/material/internal/ViewUtils$RelativePadding;->applyToView(Landroid/view/View;)V
|
|
|
|
return-object p2
|
|
.end method
|