apkfuckery/com.discord/smali/com/discord/views/ActiveSubscriptionView.smali

824 lines
19 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lcom/discord/views/ActiveSubscriptionView;
.super Landroid/widget/FrameLayout;
.source "ActiveSubscriptionView.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-07-08 16:44:49 +00:00
Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
2020-05-17 12:40:10 +00:00
}
.end annotation
# instance fields
.field public final d:Landroid/widget/TextView;
.field public final e:Landroid/widget/ImageView;
.field public final f:Landroid/widget/ImageView;
.field public final g:Landroid/widget/ImageView;
.field public final h:Landroid/widget/Button;
.field public final i:Landroid/view/View;
.field public final j:Landroid/widget/ProgressBar;
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
2020-09-09 19:21:20 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const-string v1, "context"
invoke-static {p1, v1}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0, p1, p2, v0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
2020-05-17 12:40:10 +00:00
2020-09-10 21:23:57 +00:00
const p2, 0x7f0d0108
2020-05-17 12:40:10 +00:00
invoke-static {p1, p2, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a0058
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active_subscription_header_text)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/TextView;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->d:Landroid/widget/TextView;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a0055
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active\u2026iption_header_background)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/ImageView;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->e:Landroid/widget/ImageView;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a0056
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active_subscription_header_icon)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/ImageView;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->f:Landroid/widget/ImageView;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a0057
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active_subscription_header_logo)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/ImageView;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a005e
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active_subscription_top_button)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/Button;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a0053
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active\u2026bscription_cancel_button)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
2020-09-09 19:21:20 +00:00
const p1, 0x7f0a005a
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
move-result-object p1
const-string p2, "findViewById(R.id.active_subscription_progress)"
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
check-cast p1, Landroid/widget/ProgressBar;
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->j:Landroid/widget/ProgressBar;
return-void
.end method
2020-07-08 16:44:49 +00:00
.method public static a(Lcom/discord/views/ActiveSubscriptionView;Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;Lcom/discord/models/domain/ModelSubscription$Status;ZZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ZI)V
2020-08-26 17:47:03 +00:00
.locals 19
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v0, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v1, p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v2, p2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v3, p5
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move/from16 v4, p11
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
and-int/lit8 v5, v4, 0x8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v5, :cond_0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
move/from16 v5, p4
2020-05-17 12:40:10 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
and-int/lit8 v7, v4, 0x20
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v7, :cond_1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
goto :goto_1
:cond_1
2020-09-09 19:21:20 +00:00
move/from16 v7, p6
2020-05-17 12:40:10 +00:00
:goto_1
2020-09-09 19:21:20 +00:00
and-int/lit8 v8, v4, 0x40
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v8, :cond_2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v8, 0x0
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_2
2020-09-09 19:21:20 +00:00
move/from16 v8, p7
2020-05-17 12:40:10 +00:00
:goto_2
2020-09-09 19:21:20 +00:00
and-int/lit16 v9, v4, 0x80
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v10, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v9, :cond_3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object v9, v10
2020-05-17 12:40:10 +00:00
goto :goto_3
:cond_3
2020-09-09 19:21:20 +00:00
move-object/from16 v9, p8
2020-05-17 12:40:10 +00:00
:goto_3
2020-09-09 19:21:20 +00:00
and-int/lit16 v11, v4, 0x100
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v11, :cond_4
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object v11, v10
2020-05-17 12:40:10 +00:00
goto :goto_4
:cond_4
2020-09-09 19:21:20 +00:00
move-object/from16 v11, p9
2020-05-17 12:40:10 +00:00
:goto_4
2020-09-09 19:21:20 +00:00
and-int/lit16 v4, v4, 0x200
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v4, :cond_5
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
goto :goto_5
:cond_5
2020-09-09 19:21:20 +00:00
move/from16 v4, p10
2020-05-17 12:40:10 +00:00
:goto_5
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_1d
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v10, "activeSubscriptionType"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v1, v10}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v10, "status"
invoke-static {v2, v10}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v10, "priceText"
invoke-static {v3, v10}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
iget-object v10, v0, Lcom/discord/views/ActiveSubscriptionView;->e:Landroid/widget/ImageView;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
move-result v12
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
const/4 v13, 0x3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v14, 0x2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v12, v14, :cond_7
if-eq v12, v13, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackground()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackgroundResub()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackgroundError()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_6
2020-09-09 19:21:20 +00:00
invoke-virtual {v10, v12}, Landroid/widget/ImageView;->setImageResource(I)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
iget-object v10, v0, Lcom/discord/views/ActiveSubscriptionView;->f:Landroid/widget/ImageView;
2020-05-17 12:40:10 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v12, v14, :cond_9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v12, v13, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImage()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_8
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImageResub()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_9
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImageError()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_7
2020-09-09 19:21:20 +00:00
invoke-virtual {v10, v12}, Landroid/widget/ImageView;->setImageResource(I)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
iget-object v10, v0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderLogo()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v12
invoke-virtual {v10, v12}, Landroid/widget/ImageView;->setImageResource(I)V
iget-object v10, v0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
move-result v12
const/4 v15, 0x1
if-eqz v12, :cond_c
if-eq v12, v15, :cond_b
if-ne v12, v14, :cond_a
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v12, 0x7f12126e
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_8
:cond_a
new-instance v0, Lkotlin/NoWhenBranchMatchedException;
invoke-direct {v0}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
throw v0
:cond_b
2020-09-11 02:24:27 +00:00
const v12, 0x7f1212e5
2020-09-09 19:21:20 +00:00
goto :goto_8
:cond_c
2020-09-11 02:24:27 +00:00
const v12, 0x7f1212e4
2020-09-09 19:21:20 +00:00
:goto_8
invoke-static {v0, v12}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I)Ljava/lang/String;
move-result-object v12
invoke-virtual {v10, v12}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
iget-object v10, v0, Lcom/discord/views/ActiveSubscriptionView;->d:Landroid/widget/TextView;
sget-object v12, Lcom/discord/utilities/textprocessing/Parsers;->INSTANCE:Lcom/discord/utilities/textprocessing/Parsers;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v13
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const-string v6, "context"
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v13, v6}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v6
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v6, :cond_11
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v6, v15, :cond_f
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-ne v6, v14, :cond_e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v14, v15, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v17
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v17, v14, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const v15, 0x7f1000e7
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v6, v15, v8, v14}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v6
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const-string v14, "resources.getQuantityStr\u2026bscriptionCount\n )"
invoke-static {v6, v14}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v14
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
const/4 v15, 0x3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v14, v15, :cond_d
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v14, v15, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v8}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v8, v14, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/16 v17, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v6, v14, v17
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v14, v6
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v3, 0x7f121274
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v3, v14}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_d
const/16 v17, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v14, v15, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v8, v14, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v6, v14, v17
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v14, v6
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v3, 0x7f121276
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v3, v14}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-09-08 08:16:32 +00:00
goto :goto_9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_e
2020-07-08 16:44:49 +00:00
new-instance v0, Lkotlin/NoWhenBranchMatchedException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_f
const/4 v6, 0x2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v14, 0x3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v8, v14, :cond_10
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v8, 0x7f1212ca
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v14, v6, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
move-result-object v15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/16 v16, 0x0
aput-object v15, v14, v16
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
const/4 v15, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v14, v15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v8, v14}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_10
2020-09-08 08:16:32 +00:00
const/4 v15, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v8, 0x7f1212cb
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v14, v6, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v17
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v17, v14, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v14, v15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v8, v14}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_9
:cond_11
const/16 v16, 0x0
2020-08-26 17:47:03 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result v6
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v8, 0x3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v6, v8, :cond_12
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v6, 0x7f1212c8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v8, v15, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v8, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v6, v8}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_12
2020-09-11 02:24:27 +00:00
const v6, 0x7f1212c9
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-array v8, v15, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
aput-object v3, v8, v16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v6, v8}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_9
const/4 v6, 0x0
2020-08-26 17:47:03 +00:00
2020-09-09 19:21:20 +00:00
const/4 v8, 0x0
2020-08-26 17:47:03 +00:00
2020-09-09 19:21:20 +00:00
const/4 v14, 0x0
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
const/16 v15, 0x1c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p4, v12
2020-08-26 17:47:03 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p5, v13
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p6, v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p7, v6
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p8, v8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 p9, v14
2020-08-26 17:47:03 +00:00
2020-09-09 19:21:20 +00:00
move/from16 p10, v15
2020-08-26 17:47:03 +00:00
move-object/from16 p11, v18
invoke-static/range {p4 .. p11}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(Lcom/discord/utilities/textprocessing/Parsers;Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Ljava/lang/CharSequence;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v10, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
iget-object v3, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-nez p3, :cond_13
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-nez v7, :cond_13
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_a
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_13
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_a
const/16 v8, 0x8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v6, :cond_14
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_b
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_14
const/16 v6, 0x8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_b
invoke-virtual {v3, v6}, Landroid/view/View;->setVisibility(I)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
iget-object v3, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-nez p3, :cond_15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
sget-object v6, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->PREMIUM_GUILD:Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v1, v6, :cond_15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-nez v7, :cond_15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
sget-object v6, Lcom/discord/models/domain/ModelSubscription$Status;->CANCELED:Lcom/discord/models/domain/ModelSubscription$Status;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v2, v6, :cond_15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-nez v4, :cond_15
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_c
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_15
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_c
if-eqz v4, :cond_16
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_d
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_16
const/16 v4, 0x8
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_d
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-05-17 12:40:10 +00:00
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
move-result v1
2020-09-09 19:21:20 +00:00
if-eqz v1, :cond_18
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v1, v4, :cond_18
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x2
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-ne v1, v4, :cond_17
2020-05-17 12:40:10 +00:00
2020-09-11 02:24:27 +00:00
const v1, 0x7f121208
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_e
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_17
2020-07-08 16:44:49 +00:00
new-instance v0, Lkotlin/NoWhenBranchMatchedException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_18
2020-07-08 16:44:49 +00:00
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x3
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eq v1, v2, :cond_19
2020-05-17 12:40:10 +00:00
2020-09-10 21:23:57 +00:00
const v1, 0x7f12032c
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_e
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_19
2020-09-11 02:24:27 +00:00
const v1, 0x7f1213cc
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_e
2020-07-08 16:44:49 +00:00
invoke-virtual {v3, v1}, Landroid/widget/Button;->setText(I)V
2020-05-17 12:40:10 +00:00
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-07-08 16:44:49 +00:00
new-instance v2, Lj;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v3, 0x0
invoke-direct {v2, v3, v11}, Lj;-><init>(ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-09-09 19:21:20 +00:00
if-eqz v11, :cond_1a
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/16 v16, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_f
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_1a
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:goto_f
if-eqz v16, :cond_1b
2020-05-17 12:40:10 +00:00
const/4 v2, 0x0
2020-09-09 19:21:20 +00:00
goto :goto_10
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
:cond_1b
2020-05-17 12:40:10 +00:00
const/16 v2, 0x8
2020-09-09 19:21:20 +00:00
:goto_10
2020-05-17 12:40:10 +00:00
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
2020-07-08 16:44:49 +00:00
const/4 v2, 0x1
2020-09-09 19:21:20 +00:00
xor-int/lit8 v4, v5, 0x1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v4}, Landroid/widget/Button;->setEnabled(Z)V
2020-05-17 12:40:10 +00:00
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
2020-09-09 19:21:20 +00:00
new-instance v4, Lj;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v4, v2, v9}, Lj;-><init>(ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, v0, Lcom/discord/views/ActiveSubscriptionView;->j:Landroid/widget/ProgressBar;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v7, :cond_1c
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x0
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_11
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
:cond_1c
const/16 v6, 0x8
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
:goto_11
invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
:cond_1d
throw v10
2020-07-08 16:44:49 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static final b(Lcom/discord/models/domain/ModelSubscription;)Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
.locals 1
2020-09-09 19:21:20 +00:00
const-string v0, "subscription"
invoke-static {p0, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Lcom/discord/models/domain/ModelSubscription;->getPlanType()Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
const/4 v0, 0x2
if-eq p0, v0, :cond_0
const/4 v0, 0x3
if-eq p0, v0, :cond_0
packed-switch p0, :pswitch_data_0
sget-object p0, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->PREMIUM_CLASSIC:Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
goto :goto_0
:pswitch_0
sget-object p0, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->PREMIUM_GUILD:Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
goto :goto_0
:cond_0
:pswitch_1
sget-object p0, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->PREMIUM:Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
:goto_0
return-object p0
2020-09-09 19:21:20 +00:00
nop
2020-07-08 16:44:49 +00:00
:pswitch_data_0
.packed-switch 0x6
:pswitch_1
:pswitch_1
:pswitch_0
:pswitch_0
.end packed-switch
2020-05-17 12:40:10 +00:00
.end method