apkfuckery/com.discord/smali/com/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet...

120 lines
3.4 KiB
Smali

.class public abstract Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet;
.super Lcom/discord/app/AppBottomSheet;
.source "WidgetExpressionPickerSheet.kt"
# instance fields
.field public onCancel:Lkotlin/jvm/functions/Function0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lcom/discord/app/AppBottomSheet;-><init>()V
return-void
.end method
.method public static synthetic setOnCancel$default(Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V
.locals 0
if-nez p3, :cond_1
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
:cond_0
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet;->setOnCancel(Lkotlin/jvm/functions/Function0;)V
return-void
:cond_1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string p1, "Super calls with default arguments not supported in this target, function: setOnCancel"
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public onCancel(Landroid/content/DialogInterface;)V
.locals 1
const-string v0, "dialog"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCancel(Landroid/content/DialogInterface;)V
iget-object p1, p0, Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet;->onCancel:Lkotlin/jvm/functions/Function0;
if-eqz p1, :cond_0
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lkotlin/Unit;
:cond_0
return-void
.end method
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.locals 2
invoke-super {p0, p1}, Lcom/discord/app/AppBottomSheet;->onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
move-result-object p1
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object v0
if-eqz v0, :cond_0
const/16 v1, 0x10
invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V
:cond_0
new-instance v0, Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet$onCreateDialog$1;
invoke-direct {v0, p1}, Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet$onCreateDialog$1;-><init>(Landroid/app/Dialog;)V
invoke-virtual {p1, v0}, Landroid/app/Dialog;->setOnShowListener(Landroid/content/DialogInterface$OnShowListener;)V
return-object p1
.end method
.method public final setOnCancel(Lkotlin/jvm/functions/Function0;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet;->onCancel:Lkotlin/jvm/functions/Function0;
return-void
.end method