StickyBottomSheet$onCreateDialog$1.smali
.class final Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;
.super Ljava/lang/Object;
.source "StickyBottomSheet.kt"
# interfaces
.implements Landroid/content/DialogInterface$OnShowListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/center/view/widget/StickyBottomSheet;->onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic $bottomSheetDialog:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.field final synthetic this$0:Lcom/sandboxol/center/view/widget/StickyBottomSheet;
# direct methods
.method constructor <init>(Lcom/sandboxol/center/view/widget/StickyBottomSheet;Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
.registers 3
iput-object p1, p0, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;->this$0:Lcom/sandboxol/center/view/widget/StickyBottomSheet;
iput-object p2, p0, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;->$bottomSheetDialog:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onShow(Landroid/content/DialogInterface;)V
.registers 7
if-eqz p1, :cond_4e
.line 1
check-cast p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
.line 2
sget v0, Lcom/google/android/material/R$id;->coordinator:I
invoke-virtual {p1, v0}, Landroidx/appcompat/app/A;->findViewById(I)Landroid/view/View;
move-result-object v0
.line 3
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
.line 4
sget v1, Lcom/google/android/material/R$id;->container:I
invoke-virtual {p1, v1}, Landroidx/appcompat/app/A;->findViewById(I)Landroid/view/View;
move-result-object p1
.line 5
check-cast p1, Landroid/widget/FrameLayout;
.line 6
iget-object v1, p0, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;->$bottomSheetDialog:Lcom/google/android/material/bottomsheet/BottomSheetDialog;
invoke-virtual {v1}, Landroid/app/Dialog;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object v1
iget-object v2, p0, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;->this$0:Lcom/sandboxol/center/view/widget/StickyBottomSheet;
invoke-virtual {v2}, Lcom/sandboxol/center/view/widget/StickyBottomSheet;->getStickBottomLayout()I
move-result v2
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v1
.line 7
iget-object v2, p0, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1;->this$0:Lcom/sandboxol/center/view/widget/StickyBottomSheet;
const-string v3, "bottomLayout"
invoke-static {v1, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2, v1}, Lcom/sandboxol/center/view/widget/StickyBottomSheet;->onBottomLayoutInflated(Landroid/view/View;)V
.line 8
new-instance v2, Landroid/widget/FrameLayout$LayoutParams;
const/4 v3, -0x1
const/4 v4, -0x2
invoke-direct {v2, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
const/16 v3, 0x50
.line 9
iput v3, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 10
sget-object v3, Lkotlin/n;->a:Lkotlin/n;
.line 11
invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 12
invoke-static {p1}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;)V
invoke-virtual {p1, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
.line 13
new-instance v2, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1$2;
invoke-direct {v2, v0, v1, p1}, Lcom/sandboxol/center/view/widget/StickyBottomSheet$onCreateDialog$1$2;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/widget/FrameLayout;)V
invoke-virtual {v1, v2}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
return-void
.line 14
:cond_4e
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "null cannot be cast to non-null type com.google.android.material.bottomsheet.BottomSheetDialog"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method