apkfuckery/com.discord/smali_classes2/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5.smali

312 lines
10 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.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
2020-07-08 16:44:49 +00:00
.locals 24
2020-05-17 12:40:10 +00:00
move-object/from16 v0, p0
iget v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->$userRelationshipType:I
const/4 v2, 0x3
2020-07-08 16:44:49 +00:00
const/4 v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v4, 0x7f0a0623
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, 0x0
const-string v6, "requireContext()"
const-string v7, "parentFragmentManager"
if-eq v1, v2, :cond_2
2020-05-17 12:40:10 +00:00
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
2020-07-25 00:57:58 +00:00
invoke-static {v2, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v6, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v6}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v9
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v9, v7}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v6, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v7, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v7}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet;->access$getViewModel$p(Lcom/discord/widgets/user/usersheet/WidgetUserSheet;)Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v6, v7}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$1;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v8, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v7, 0x7f12106d
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v10
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v7, 0x7f12106e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-array v3, v3, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object v1
2020-07-08 16:44:49 +00:00
aput-object v1, v3, v5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v7, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v1, "context.getString(R.stri\u2026elete_msg, user.username)"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v11, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v1, 0x7f120561
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v1, 0x7f1203ac
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v13
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Lf/a/a/l;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v6}, Lf/a/a/l;-><init>(Lkotlin/jvm/functions/Function1;)V
new-instance v3, Lkotlin/Pair;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {v3}, Lf/n/a/k/a;->mapOf(Lkotlin/Pair;)Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v14
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x0
2020-07-25 00:57:58 +00:00
const v1, 0x7f0403dc
2020-07-08 16:44:49 +00:00
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v18
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/16 v22, 0x1dc0
const/16 v23, 0x0
invoke-static/range {v8 .. v23}, 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
const-string v1, "user"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
const/4 v1, 0x0
throw v1
:cond_2
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;
2020-05-17 12:40:10 +00:00
move-result-object v9
2020-07-25 00:57:58 +00:00
invoke-static {v9, v7}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, v0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;->this$0:Lcom/discord/widgets/user/usersheet/WidgetUserSheet;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
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 v6, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$3;
invoke-direct {v6, v0}, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5$3;-><init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$5;)V
sget-object v8, Lcom/discord/widgets/notice/WidgetNoticeDialog;->Companion:Lcom/discord/widgets/notice/WidgetNoticeDialog$Companion;
2020-07-25 00:57:58 +00:00
const v7, 0x7f120c5a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v10
2020-07-25 00:57:58 +00:00
const v7, 0x7f1216b9
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object v11
2020-07-08 16:44:49 +00:00
const-string v7, "context.getString(R.stri\u2026iend_request_dialog_body)"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v11, v7}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v7, 0x7f1207a6
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v7, 0x7f1207aa
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v13
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v1, 0x2
new-array v1, v1, [Lkotlin/Pair;
2020-05-17 12:40:10 +00:00
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
2020-07-08 16:44:49 +00:00
new-instance v7, Lf/a/a/j;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v7, v2}, Lf/a/a/j;-><init>(Lkotlin/jvm/functions/Function0;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Lkotlin/Pair;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v4, v7}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v2, v1, v5
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const v2, 0x7f0a061e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
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, v6}, Lf/a/a/k;-><init>(Lkotlin/jvm/functions/Function0;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v5, Lkotlin/Pair;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v5, v2, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v5, v1, v3
2020-07-25 02:57:47 +00:00
invoke-static {v1}, Lf/n/a/k/a;->mapOf([Lkotlin/Pair;)Ljava/util/Map;
2020-07-08 16:44:49 +00:00
move-result-object v14
2020-05-17 12:40:10 +00:00
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x0
const/16 v18, 0x0
2020-07-08 16:44:49 +00:00
const/16 v19, 0x0
2020-05-17 12:40:10 +00:00
const/16 v20, 0x0
2020-07-08 16:44:49 +00:00
const/16 v21, 0x0
const/16 v22, 0x1fc0
const/16 v23, 0x0
invoke-static/range {v8 .. v23}, 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
2020-05-17 12:40:10 +00:00
:goto_0
return-void
.end method