apkfuckery/com.discord/smali_classes2/com/discord/widgets/user/usersheet/WidgetUserSheet$configurePr...

329 lines
11 KiB
Smali

.class public final Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;
.super Ljava/lang/Object;
.source "WidgetUserSheet.kt"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/user/usersheet/WidgetUserSheet;->configureProfileActionButtons(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $userRelationshipType:I
.field public final synthetic $viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;
.field public final synthetic this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
# direct methods
.method public constructor <init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheet;ILcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;)V
.locals 0
iput-object p1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
iput p2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->$userRelationshipType:I
iput-object p3, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->$viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.locals 26
move-object/from16 v0, p0
iget v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->$userRelationshipType:I
const/4 v2, 0x3
const/4 v3, 0x1
const/4 v4, 0x0
const v5, 0x7f0a068d
const-string v6, "context"
const-string v7, "fragmentManager"
const-string v8, "requireContext()"
const-string v9, "parentFragmentManager"
if-eq v1, v2, :cond_1
const/4 v2, 0x4
if-eq v1, v2, :cond_0
goto/16 :goto_0
:cond_0
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->$viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;
invoke-virtual {v1}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState$Loaded;->getUser()Lcom/discord/models/domain/ModelUser;
move-result-object v1
iget-object v2, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v2
invoke-static {v2, v8}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v8, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
invoke-virtual {v8}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v11
invoke-static {v11, v9}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v8, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$1;
iget-object v9, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
invoke-static {v9}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet;->access$getViewModel$p(Lcom/discord/widgets/user/usersheet/WidgetUserSheet;)Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel;
move-result-object v9
invoke-direct {v8, v9}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$1;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel;)V
const-string v9, "user"
invoke-static {v1, v9}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v2, v6}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v11, v7}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v6, "onConfirm"
invoke-static {v8, v6}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v10, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
const v6, 0x7f121104
invoke-virtual {v2, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v12
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
move-result-object v1
aput-object v1, v3, v4
const v1, 0x7f121105
invoke-virtual {v2, v1, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v13
const-string v1, "context.getString(R.stri\u2026elete_msg, user.username)"
invoke-static {v13, v1}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const v1, 0x7f120578
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v14
const v1, 0x7f1203c9
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v15
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
new-instance v2, Lf/a/a/l;
invoke-direct {v2, v8}, Lf/a/a/l;-><init>(Lkotlin/jvm/functions/Function1;)V
new-instance v3, Lkotlin/Pair;
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
invoke-static {v3}, Lf/h/a/f/e/n/f;->mapOf(Lkotlin/Pair;)Ljava/util/Map;
move-result-object v16
const/16 v17, 0x0
const/16 v18, 0x0
const/16 v19, 0x0
const v1, 0x7f04042c
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v20
const/16 v21, 0x0
const/16 v22, 0x0
const/16 v23, 0x0
const/16 v24, 0x1dc0
const/16 v25, 0x0
invoke-static/range {v10 .. v25}, 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
goto/16 :goto_0
:cond_1
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v11
invoke-static {v11, v9}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1, v8}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v2, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$2;
invoke-direct {v2, v0}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$2;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;)V
new-instance v8, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$3;
invoke-direct {v8, v0}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$3;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;)V
invoke-static {v11, v7}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v1, v6}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v6, "onAccept"
invoke-static {v2, v6}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v6, "onIgnore"
invoke-static {v8, v6}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v10, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
const v6, 0x7f120cc4
invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v12
const v6, 0x7f1217a4
invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v13
const-string v6, "context.getString(R.stri\u2026iend_request_dialog_body)"
invoke-static {v13, v6}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const v6, 0x7f1207c3
invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v14
const v6, 0x7f1207c7
invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v15
const/4 v1, 0x2
new-array v1, v1, [Lkotlin/Pair;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
new-instance v6, Lf/a/a/j;
invoke-direct {v6, v2}, Lf/a/a/j;-><init>(Lkotlin/jvm/functions/Function0;)V
new-instance v2, Lkotlin/Pair;
invoke-direct {v2, v5, v6}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object v2, v1, v4
const v2, 0x7f0a0688
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
new-instance v4, Lf/a/a/k;
invoke-direct {v4, v8}, Lf/a/a/k;-><init>(Lkotlin/jvm/functions/Function0;)V
new-instance v5, Lkotlin/Pair;
invoke-direct {v5, v2, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
aput-object v5, v1, v3
invoke-static {v1}, Lf/h/a/f/e/n/f;->mapOf([Lkotlin/Pair;)Ljava/util/Map;
move-result-object v16
const/16 v17, 0x0
const/16 v18, 0x0
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/16 v22, 0x0
const/16 v23, 0x0
const/16 v24, 0x1fc0
const/16 v25, 0x0
invoke-static/range {v10 .. v25}, 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
:goto_0
return-void
.end method