527 lines
14 KiB
Smali
527 lines
14 KiB
Smali
.class public final Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetNoticeDialog.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/notice/WidgetNoticeDialog;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic show$default(Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;IILjava/lang/Object;)V
|
|
.locals 17
|
|
|
|
move/from16 v0, p14
|
|
|
|
and-int/lit8 v1, v0, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
move-object v5, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v5, p2
|
|
|
|
:goto_0
|
|
and-int/lit8 v1, v0, 0x10
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move-object v8, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object/from16 v8, p5
|
|
|
|
:goto_1
|
|
and-int/lit8 v1, v0, 0x20
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object v9, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object/from16 v9, p6
|
|
|
|
:goto_2
|
|
and-int/lit8 v1, v0, 0x40
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move-object v10, v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object/from16 v10, p7
|
|
|
|
:goto_3
|
|
and-int/lit16 v1, v0, 0x80
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
move-object v11, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object/from16 v11, p8
|
|
|
|
:goto_4
|
|
and-int/lit16 v1, v0, 0x100
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
move-object v12, v2
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move-object/from16 v12, p9
|
|
|
|
:goto_5
|
|
and-int/lit16 v1, v0, 0x200
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
move-object v13, v2
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
move-object/from16 v13, p10
|
|
|
|
:goto_6
|
|
and-int/lit16 v1, v0, 0x400
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
move-object v14, v2
|
|
|
|
goto :goto_7
|
|
|
|
:cond_7
|
|
move-object/from16 v14, p11
|
|
|
|
:goto_7
|
|
and-int/lit16 v1, v0, 0x800
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
move-object v15, v2
|
|
|
|
goto :goto_8
|
|
|
|
:cond_8
|
|
move-object/from16 v15, p12
|
|
|
|
:goto_8
|
|
and-int/lit16 v0, v0, 0x1000
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
const/4 v0, 0x2
|
|
|
|
const/16 v16, 0x2
|
|
|
|
goto :goto_9
|
|
|
|
:cond_9
|
|
move/from16 v16, p13
|
|
|
|
:goto_9
|
|
move-object/from16 v3, p0
|
|
|
|
move-object/from16 v4, p1
|
|
|
|
move-object/from16 v6, p3
|
|
|
|
move-object/from16 v7, p4
|
|
|
|
invoke-virtual/range {v3 .. v16}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic showInputModal$default(Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;Lcom/discord/app/AppActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function0;Ljava/lang/Boolean;ILjava/lang/Object;)V
|
|
.locals 10
|
|
|
|
and-int/lit8 v0, p8, 0x20
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v8, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v8, p6
|
|
|
|
:goto_0
|
|
and-int/lit8 v0, p8, 0x40
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v9, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object/from16 v9, p7
|
|
|
|
:goto_1
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
move-object v7, p5
|
|
|
|
invoke-virtual/range {v2 .. v9}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;->showInputModal(Lcom/discord/app/AppActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function0;Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;I)V
|
|
.locals 2
|
|
.param p8 # Ljava/lang/Integer;
|
|
.annotation build Landroidx/annotation/LayoutRes;
|
|
.end annotation
|
|
.end param
|
|
.param p9 # Ljava/lang/Integer;
|
|
.annotation build Landroidx/annotation/LayoutRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Integer;",
|
|
"+",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Landroid/view/View;",
|
|
"Lkotlin/Unit;",
|
|
">;>;",
|
|
"Lcom/discord/stores/StoreNotices$Dialog$Type;",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Boolean;",
|
|
"Ljava/lang/String;",
|
|
"I)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "fragmentManager"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "bodyText"
|
|
|
|
invoke-static {p3, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/notice/WidgetNoticeDialog;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/notice/WidgetNoticeDialog;-><init>()V
|
|
|
|
invoke-virtual {v0, p6}, Lcom/discord/widgets/notice/WidgetNoticeDialog;->setListenerMap(Ljava/util/Map;)V
|
|
|
|
new-instance p6, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p6}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v1, "header_text"
|
|
|
|
invoke-virtual {p6, v1, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string p2, "body_text"
|
|
|
|
invoke-virtual {p6, p2, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string p2, "ok_text"
|
|
|
|
invoke-virtual {p6, p2, p4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string p2, "cancel_text"
|
|
|
|
invoke-virtual {p6, p2, p5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
invoke-virtual {p7}, Ljava/lang/Enum;->name()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "notice_type"
|
|
|
|
invoke-virtual {p6, p3, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
if-eqz p8, :cond_1
|
|
|
|
invoke-virtual {p8}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
const-string p3, "above_layout_id"
|
|
|
|
invoke-virtual {p6, p3, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
:cond_1
|
|
if-eqz p9, :cond_2
|
|
|
|
invoke-virtual {p9}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
const-string p3, "below_layout_id"
|
|
|
|
invoke-virtual {p6, p3, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
:cond_2
|
|
if-eqz p10, :cond_3
|
|
|
|
invoke-virtual {p10}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
const-string p3, "theme_id"
|
|
|
|
invoke-virtual {p6, p3, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
:cond_3
|
|
if-eqz p11, :cond_4
|
|
|
|
invoke-virtual {p11}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p2
|
|
|
|
const-string p3, "cancelable"
|
|
|
|
invoke-virtual {p6, p3, p2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
:cond_4
|
|
const-string p2, "body_text_alignment"
|
|
|
|
invoke-virtual {p6, p2, p13}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
invoke-virtual {v0, p6}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
if-eqz p12, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const-class p2, Lcom/discord/widgets/notice/WidgetNoticeDialog;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object p12
|
|
|
|
const-string p2, "WidgetNoticeDialog::class.java.simpleName"
|
|
|
|
invoke-static {p12, p2}, Lk0/o/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, p1, p12}, Lcom/discord/app/AppDialog;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final showInputModal(Lcom/discord/app/AppActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function0;Ljava/lang/Boolean;)V
|
|
.locals 21
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/app/AppActivity;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-",
|
|
"Landroid/content/Context;",
|
|
"-",
|
|
"Ljava/lang/String;",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Ljava/lang/Boolean;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move-object/from16 v1, p4
|
|
|
|
move-object/from16 v2, p5
|
|
|
|
move-object/from16 v3, p6
|
|
|
|
const-string v4, "activity"
|
|
|
|
invoke-static {v0, v4}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "headerText"
|
|
|
|
move-object/from16 v7, p2
|
|
|
|
invoke-static {v7, v4}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "bodyText"
|
|
|
|
move-object/from16 v8, p3
|
|
|
|
invoke-static {v8, v4}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "hintText"
|
|
|
|
invoke-static {v1, v4}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "onOKClicked"
|
|
|
|
invoke-static {v2, v4}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v11, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v11}, Ljava/util/HashMap;-><init>()V
|
|
|
|
const v4, 0x7f0a0632
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
new-instance v5, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$1;
|
|
|
|
invoke-direct {v5, v2}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$1;-><init>(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
invoke-interface {v11, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const v2, 0x7f0a062d
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v4, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$2;
|
|
|
|
invoke-direct {v4, v3}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$2;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-interface {v11, v2, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$3;
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion$showInputModal$3;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {v11, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v1, "activity.supportFragmentManager"
|
|
|
|
invoke-static {v6, v1}, Lk0/o/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v1, 0x7f0d0111
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v14
|
|
|
|
const v1, 0x7f12047f
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const v1, 0x7f1203b8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/16 v19, 0x1ac0
|
|
|
|
const/16 v20, 0x0
|
|
|
|
move-object/from16 v5, p0
|
|
|
|
move-object/from16 v7, p2
|
|
|
|
move-object/from16 v8, p3
|
|
|
|
move-object/from16 v16, p7
|
|
|
|
invoke-static/range {v5 .. v20}, Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;->show$default(Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/discord/stores/StoreNotices$Dialog$Type;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;IILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|