333 lines
9.1 KiB
Smali
333 lines
9.1 KiB
Smali
.class public final Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;
|
|
.super Ljava/lang/Object;
|
|
.source "MessageActionDialogs.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;->INSTANCE:Lcom/discord/widgets/chat/list/actions/MessageActionDialogs;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final showDeleteMessageConfirmation(Landroidx/fragment/app/FragmentManager;Landroid/content/Context;Lcom/discord/models/domain/ModelMessage;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 20
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Landroid/content/Context;",
|
|
"Lcom/discord/models/domain/ModelMessage;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p2
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
move-object/from16 v2, p4
|
|
|
|
const-string v3, "fragmentManager"
|
|
|
|
move-object/from16 v5, p1
|
|
|
|
invoke-static {v5, v3}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v3, "context"
|
|
|
|
invoke-static {v0, v3}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v3, "message"
|
|
|
|
invoke-static {v1, v3}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v3, "onSuccess"
|
|
|
|
invoke-static {v2, v3}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v4, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
|
|
|
|
const v3, 0x7f12057f
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const v3, 0x7f120580
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v3, "context.getString(R.string.delete_message_body)"
|
|
|
|
invoke-static {v7, v3}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f120574
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const v3, 0x7f1203c6
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const v0, 0x7f0a068e
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v3, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs$showDeleteMessageConfirmation$1;
|
|
|
|
invoke-direct {v3, v1, v2}, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs$showDeleteMessageConfirmation$1;-><init>(Lcom/discord/models/domain/ModelMessage;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
new-instance v1, Lkotlin/Pair;
|
|
|
|
invoke-direct {v1, v0, v3}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
invoke-static {v1}, Lf/h/a/f/e/n/f;->mapOf(Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v10
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const v0, 0x7f04042c
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v14
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const/16 v18, 0x1dc0
|
|
|
|
const/16 v19, 0x0
|
|
|
|
move-object/from16 v5, p1
|
|
|
|
invoke-static/range {v4 .. v19}, 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
|
|
|
|
.method public final showPinMessageConfirmation(Landroidx/fragment/app/FragmentManager;Landroid/content/Context;Lcom/discord/models/domain/ModelMessage;Lcom/discord/app/AppComponent;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 21
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Landroid/content/Context;",
|
|
"Lcom/discord/models/domain/ModelMessage;",
|
|
"Lcom/discord/app/AppComponent;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v4, p2
|
|
|
|
const-string v0, "fragmentManager"
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
invoke-static {v6, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v4, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "message"
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
invoke-static {v1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "appComponent"
|
|
|
|
move-object/from16 v3, p4
|
|
|
|
invoke-static {v3, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onSuccess"
|
|
|
|
move-object/from16 v5, p5
|
|
|
|
invoke-static {v5, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelMessage;->isPinned()Z
|
|
|
|
move-result v2
|
|
|
|
sget-object v7, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const v0, 0x7f1216fc
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v0, 0x7f121192
|
|
|
|
:goto_0
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const v0, 0x7f1216f8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const v0, 0x7f121190
|
|
|
|
:goto_1
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v0, "context.getString(\n \u2026age_body_mobile\n )"
|
|
|
|
invoke-static {v9, v0}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const v0, 0x7f1216f5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const v0, 0x7f12118c
|
|
|
|
:goto_2
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
const v0, 0x7f1203c6
|
|
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
const v0, 0x7f0a068e
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v12
|
|
|
|
new-instance v13, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs$showPinMessageConfirmation$1;
|
|
|
|
move-object v0, v13
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
move-object/from16 v3, p4
|
|
|
|
move-object/from16 v4, p2
|
|
|
|
move-object/from16 v5, p5
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs$showPinMessageConfirmation$1;-><init>(Lcom/discord/models/domain/ModelMessage;ZLcom/discord/app/AppComponent;Landroid/content/Context;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
new-instance v0, Lkotlin/Pair;
|
|
|
|
invoke-direct {v0, v12, v13}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
invoke-static {v0}, Lf/h/a/f/e/n/f;->mapOf(Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/16 v19, 0x1fc0
|
|
|
|
const/16 v20, 0x0
|
|
|
|
move-object v1, v7
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object v3, v8
|
|
|
|
move-object v4, v9
|
|
|
|
move-object v5, v10
|
|
|
|
move-object v6, v11
|
|
|
|
move-object v7, v0
|
|
|
|
move-object v8, v12
|
|
|
|
move-object v9, v13
|
|
|
|
move-object v10, v14
|
|
|
|
move-object v11, v15
|
|
|
|
move-object/from16 v12, v16
|
|
|
|
move-object/from16 v13, v17
|
|
|
|
move/from16 v14, v18
|
|
|
|
move/from16 v15, v19
|
|
|
|
move-object/from16 v16, v20
|
|
|
|
invoke-static/range {v1 .. v16}, 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
|