373 lines
9.5 KiB
Smali
373 lines
9.5 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 19
|
|
.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/4 v3, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
sget-object v4, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
|
|
|
|
const v3, 0x7f1204d9
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v3, "context.getString(R.string.delete_message)"
|
|
|
|
invoke-static {v6, v3}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f1204da
|
|
|
|
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}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v3, 0x7f1204ce
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const v3, 0x7f12036f
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const v0, 0x7f0a04c0
|
|
|
|
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
|
|
|
|
invoke-static {v0, v3}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
|
|
|
|
move-result-object v10
|
|
|
|
const-string v0, "java.util.Collections.si\u2026(pair.first, pair.second)"
|
|
|
|
invoke-static {v10, v0}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const v0, 0x7f0402d0
|
|
|
|
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, 0xdc0
|
|
|
|
const/16 v18, 0x0
|
|
|
|
move-object/from16 v5, p1
|
|
|
|
invoke-static/range {v4 .. v18}, 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;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "onSuccess"
|
|
|
|
invoke-static {v0}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_1
|
|
const-string v0, "message"
|
|
|
|
invoke-static {v0}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_2
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v0}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_3
|
|
const-string v0, "fragmentManager"
|
|
|
|
invoke-static {v0}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
.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 19
|
|
.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/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/models/domain/ModelMessage;->isPinned()Z
|
|
|
|
move-result v2
|
|
|
|
sget-object v6, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const v0, 0x7f12125f
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v0, 0x7f120d93
|
|
|
|
:goto_0
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v0, "context.getString(if (is\u2026string.pin_message_title)"
|
|
|
|
invoke-static {v7, v0}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const v0, 0x7f12125b
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const v0, 0x7f120d91
|
|
|
|
:goto_1
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v0, "context.getString(if (is\u2026.pin_message_body_mobile)"
|
|
|
|
invoke-static {v8, v0}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const v0, 0x7f121258
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const v0, 0x7f120d8d
|
|
|
|
:goto_2
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const v0, 0x7f12036f
|
|
|
|
invoke-virtual {v4, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
const v0, 0x7f0a04c0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v11
|
|
|
|
new-instance v12, Lcom/discord/widgets/chat/list/actions/MessageActionDialogs$showPinMessageConfirmation$1;
|
|
|
|
move-object v0, v12
|
|
|
|
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
|
|
|
|
invoke-static {v11, v12}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "java.util.Collections.si\u2026(pair.first, pair.second)"
|
|
|
|
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0xfc0
|
|
|
|
const/16 v18, 0x0
|
|
|
|
move-object v1, v6
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object v3, v7
|
|
|
|
move-object v4, v8
|
|
|
|
move-object v5, v9
|
|
|
|
move-object v6, v10
|
|
|
|
move-object v7, v0
|
|
|
|
move-object v8, v11
|
|
|
|
move-object v9, v12
|
|
|
|
move-object v10, v13
|
|
|
|
move-object v11, v14
|
|
|
|
move-object v12, v15
|
|
|
|
move-object/from16 v13, v16
|
|
|
|
move/from16 v14, v17
|
|
|
|
move-object/from16 v15, v18
|
|
|
|
invoke-static/range {v1 .. v15}, 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;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string v1, "onSuccess"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
const-string v1, "appComponent"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_5
|
|
const-string v1, "message"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
const-string v1, "context"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_7
|
|
const-string v1, "fragmentManager"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|