BottomSheetDialog.smali
.class public Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.super Landroidx/appcompat/app/AppCompatDialog;
# instance fields
.field private h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"Landroid/widget/FrameLayout;",
">;"
}
.end annotation
.end field
.field private i:Landroid/widget/FrameLayout;
.field j:Z
.field k:Z
.field private l:Z
.field private m:Z
.field private n:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
.registers 3
invoke-static {p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->b(Landroid/content/Context;I)I
move-result p2
invoke-direct {p0, p1, p2}, Landroidx/appcompat/app/AppCompatDialog;-><init>(Landroid/content/Context;I)V
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->l:Z
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$4;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
iput-object p2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->n:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatDialog;->d(I)Z
return-void
.end method
.method private static b(Landroid/content/Context;I)I
.registers 4
if-nez p1, :cond_19
new-instance p1, Landroid/util/TypedValue;
invoke-direct {p1}, Landroid/util/TypedValue;-><init>()V
invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p0
sget v0, Lcom/google/android/material/R$attr;->bottomSheetDialogTheme:I
const/4 v1, 0x1
invoke-virtual {p0, v0, p1, v1}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
move-result p0
if-eqz p0, :cond_17
iget p1, p1, Landroid/util/TypedValue;->resourceId:I
goto :goto_19
:cond_17
sget p1, Lcom/google/android/material/R$style;->Theme_Design_Light_BottomSheetDialog:I
:cond_19
:goto_19
return p1
.end method
.method private e()Landroid/widget/FrameLayout;
.registers 4
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
if-nez v0, :cond_2d
invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object v0
sget v1, Lcom/google/android/material/R$layout;->design_bottom_sheet_dialog:I
const/4 v2, 0x0
invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout;
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
sget v1, Lcom/google/android/material/R$id;->design_bottom_sheet:I
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout;
invoke-static {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->U(Landroid/view/View;)Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
move-result-object v0
iput-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->n:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->L(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->g0(Z)V
:cond_2d
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
return-object v0
.end method
.method private j(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
.registers 6
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->e()Landroid/widget/FrameLayout;
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
sget v1, Lcom/google/android/material/R$id;->coordinator:I
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
if-eqz p1, :cond_1a
if-nez p2, :cond_1a
invoke-virtual {p0}, Landroid/app/Dialog;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object p2
const/4 v1, 0x0
invoke-virtual {p2, p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p2
:cond_1a
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
sget v1, Lcom/google/android/material/R$id;->design_bottom_sheet:I
invoke-virtual {p1, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/FrameLayout;
invoke-virtual {p1}, Landroid/widget/FrameLayout;->removeAllViews()V
if-nez p3, :cond_2d
invoke-virtual {p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
goto :goto_30
:cond_2d
invoke-virtual {p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
:goto_30
sget p2, Lcom/google/android/material/R$id;->touch_outside:I
invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
move-result-object p2
new-instance p3, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;
invoke-direct {p3, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$1;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
invoke-virtual {p2, p3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$2;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->h0(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
new-instance p2, Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;
invoke-direct {p2, p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$3;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
invoke-virtual {p1, p2}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->i:Landroid/widget/FrameLayout;
return-object p1
.end method
# virtual methods
.method public cancel()V
.registers 4
invoke-virtual {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->f()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
move-result-object v0
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->j:Z
if-eqz v1, :cond_14
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->W()I
move-result v1
const/4 v2, 0x5
if-ne v1, v2, :cond_10
goto :goto_14
:cond_10
invoke-virtual {v0, v2}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->l0(I)V
goto :goto_17
:cond_14
:goto_14
invoke-super {p0}, Landroid/app/Dialog;->cancel()V
:goto_17
return-void
.end method
.method public f()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
"Landroid/widget/FrameLayout;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-nez v0, :cond_7
invoke-direct {p0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->e()Landroid/widget/FrameLayout;
:cond_7
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
return-object v0
.end method
.method public g()Z
.registers 2
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->j:Z
return v0
.end method
.method h()V
.registers 3
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
iget-object v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->n:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->Z(Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;)V
return-void
.end method
.method i()Z
.registers 6
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->m:Z
if-nez v0, :cond_20
invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x1
new-array v2, v1, [I
const v3, 0x101035b
const/4 v4, 0x0
aput v3, v2, v4
invoke-virtual {v0, v2}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
move-result-object v0
invoke-virtual {v0, v4, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v2
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->l:Z
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
iput-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->m:Z
:cond_20
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->l:Z
return v0
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.registers 4
invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatDialog;->onCreate(Landroid/os/Bundle;)V
invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object p1
if-eqz p1, :cond_1d
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_19
const/high16 v0, 0x4000000
invoke-virtual {p1, v0}, Landroid/view/Window;->clearFlags(I)V
const/high16 v0, -0x80000000
invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V
:cond_19
const/4 v0, -0x1
invoke-virtual {p1, v0, v0}, Landroid/view/Window;->setLayout(II)V
:cond_1d
return-void
.end method
.method protected onStart()V
.registers 3
invoke-super {p0}, Landroid/app/Dialog;->onStart()V
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-eqz v0, :cond_14
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->W()I
move-result v0
const/4 v1, 0x5
if-ne v0, v1, :cond_14
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->l0(I)V
:cond_14
return-void
.end method
.method public setCancelable(Z)V
.registers 3
invoke-super {p0, p1}, Landroid/app/Dialog;->setCancelable(Z)V
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
if-eq v0, p1, :cond_10
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
if-eqz v0, :cond_10
invoke-virtual {v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->g0(Z)V
:cond_10
return-void
.end method
.method public setCanceledOnTouchOutside(Z)V
.registers 4
invoke-super {p0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V
const/4 v0, 0x1
if-eqz p1, :cond_c
iget-boolean v1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
if-nez v1, :cond_c
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->k:Z
:cond_c
iput-boolean p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->l:Z
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->m:Z
return-void
.end method
.method public setContentView(I)V
.registers 3
const/4 v0, 0x0
invoke-direct {p0, p1, v0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->j(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatDialog;->setContentView(Landroid/view/View;)V
return-void
.end method
.method public setContentView(Landroid/view/View;)V
.registers 4
const/4 v0, 0x0
const/4 v1, 0x0
invoke-direct {p0, v0, p1, v1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->j(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatDialog;->setContentView(Landroid/view/View;)V
return-void
.end method
.method public setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.registers 4
const/4 v0, 0x0
invoke-direct {p0, v0, p1, p2}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->j(ILandroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Landroid/view/View;
move-result-object p1
invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatDialog;->setContentView(Landroid/view/View;)V
return-void
.end method