857 lines
20 KiB
Smali
857 lines
20 KiB
Smali
.class public final Lcom/discord/views/ActiveSubscriptionView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "ActiveSubscriptionView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;,
|
|
Lcom/discord/views/ActiveSubscriptionView$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:Lcom/discord/views/ActiveSubscriptionView$b;
|
|
|
|
|
|
# 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 static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/discord/views/ActiveSubscriptionView$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/views/ActiveSubscriptionView$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/views/ActiveSubscriptionView;->k:Lcom/discord/views/ActiveSubscriptionView$b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 6
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const p2, 0x7f0d00d8
|
|
|
|
invoke-static {p1, p2, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const p1, 0x7f0a0050
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->d:Landroid/widget/TextView;
|
|
|
|
const p1, 0x7f0a004d
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->e:Landroid/widget/ImageView;
|
|
|
|
const p1, 0x7f0a004e
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->f:Landroid/widget/ImageView;
|
|
|
|
const p1, 0x7f0a004f
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
|
|
|
|
const p1, 0x7f0a0056
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/Button;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
const p1, 0x7f0a004b
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
const p1, 0x7f0a0052
|
|
|
|
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)"
|
|
|
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/ProgressBar;
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->j:Landroid/widget/ProgressBar;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic 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
|
|
.locals 14
|
|
|
|
move/from16 v0, p11
|
|
|
|
and-int/lit8 v1, v0, 0x8
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move/from16 v7, p4
|
|
|
|
:goto_0
|
|
and-int/lit8 v1, v0, 0x20
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move/from16 v9, p6
|
|
|
|
:goto_1
|
|
and-int/lit8 v1, v0, 0x40
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/4 v10, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move/from16 v10, p7
|
|
|
|
:goto_2
|
|
and-int/lit16 v1, v0, 0x80
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move-object v11, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object/from16 v11, p8
|
|
|
|
:goto_3
|
|
and-int/lit16 v1, v0, 0x100
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
move-object v12, v3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object/from16 v12, p9
|
|
|
|
:goto_4
|
|
and-int/lit16 v0, v0, 0x200
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v13, 0x0
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move/from16 v13, p10
|
|
|
|
:goto_5
|
|
move-object v3, p0
|
|
|
|
move-object v4, p1
|
|
|
|
move-object/from16 v5, p2
|
|
|
|
move/from16 v6, p3
|
|
|
|
move-object/from16 v8, p5
|
|
|
|
invoke-virtual/range {v3 .. v13}, Lcom/discord/views/ActiveSubscriptionView;->a(Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;Lcom/discord/models/domain/ModelSubscription$Status;ZZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;Lcom/discord/models/domain/ModelSubscription$Status;ZZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Z)V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;",
|
|
"Lcom/discord/models/domain/ModelSubscription$Status;",
|
|
"ZZ",
|
|
"Ljava/lang/CharSequence;",
|
|
"ZI",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
move-object/from16 v3, p9
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v1, :cond_17
|
|
|
|
if-eqz v2, :cond_16
|
|
|
|
if-eqz p5, :cond_15
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->e:Landroid/widget/ImageView;
|
|
|
|
sget-object v5, Lf/a/l/b;->a:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v6
|
|
|
|
aget v5, v5, v6
|
|
|
|
const/4 v6, 0x2
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-eq v5, v7, :cond_1
|
|
|
|
if-eq v5, v6, :cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackground()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackgroundError()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderBackgroundResub()I
|
|
|
|
move-result v5
|
|
|
|
:goto_0
|
|
invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->f:Landroid/widget/ImageView;
|
|
|
|
sget-object v5, Lf/a/l/b;->b:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v8
|
|
|
|
aget v5, v5, v8
|
|
|
|
if-eq v5, v7, :cond_3
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImage()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImageError()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderImageResub()I
|
|
|
|
move-result v5
|
|
|
|
:goto_1
|
|
invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->getHeaderLogo()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->d:Landroid/widget/TextView;
|
|
|
|
sget-object v8, Lcom/discord/utilities/textprocessing/Parsers;->INSTANCE:Lcom/discord/utilities/textprocessing/Parsers;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v5, "context"
|
|
|
|
invoke-static {v9, v5}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v5, Lf/a/l/b;->f:[I
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v10
|
|
|
|
aget v5, v5, v10
|
|
|
|
const/4 v15, 0x3
|
|
|
|
const/4 v14, 0x0
|
|
|
|
if-eq v5, v7, :cond_8
|
|
|
|
if-eq v5, v6, :cond_6
|
|
|
|
if-ne v5, v15, :cond_5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v5
|
|
|
|
const v10, 0x7f1000d6
|
|
|
|
new-array v11, v7, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p7 .. p7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v12
|
|
|
|
aput-object v12, v11, v14
|
|
|
|
move/from16 v12, p7
|
|
|
|
invoke-virtual {v5, v10, v12, v11}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v10, "resources.getQuantityStr\u2026bscriptionCount\n )"
|
|
|
|
invoke-static {v5, v10}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v10, Lf/a/l/b;->e:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v11
|
|
|
|
aget v10, v10, v11
|
|
|
|
if-eq v10, v7, :cond_4
|
|
|
|
const v10, 0x7f1210b5
|
|
|
|
new-array v11, v15, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p7 .. p7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
aput-object v12, v11, v14
|
|
|
|
aput-object v5, v11, v7
|
|
|
|
aput-object p5, v11, v6
|
|
|
|
invoke-static {v0, v10, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const v10, 0x7f1210b7
|
|
|
|
new-array v11, v15, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p7 .. p7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v12
|
|
|
|
aput-object v12, v11, v14
|
|
|
|
aput-object v5, v11, v7
|
|
|
|
aput-object p5, v11, v6
|
|
|
|
invoke-static {v0, v10, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
new-instance v1, Ly/g;
|
|
|
|
invoke-direct {v1}, Ly/g;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_6
|
|
sget-object v5, Lf/a/l/b;->d:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v10
|
|
|
|
aget v5, v5, v10
|
|
|
|
if-eq v5, v7, :cond_7
|
|
|
|
const v5, 0x7f1210fc
|
|
|
|
new-array v10, v6, [Ljava/lang/Object;
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v11
|
|
|
|
aput-object v11, v10, v14
|
|
|
|
aput-object p5, v10, v7
|
|
|
|
invoke-static {v0, v5, v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
const v5, 0x7f1210fd
|
|
|
|
new-array v10, v6, [Ljava/lang/Object;
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v11
|
|
|
|
aput-object v11, v10, v14
|
|
|
|
aput-object p5, v10, v7
|
|
|
|
invoke-static {v0, v5, v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
sget-object v5, Lf/a/l/b;->c:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v10
|
|
|
|
aget v5, v5, v10
|
|
|
|
if-eq v5, v7, :cond_9
|
|
|
|
const v5, 0x7f1210fa
|
|
|
|
new-array v10, v7, [Ljava/lang/Object;
|
|
|
|
aput-object p5, v10, v14
|
|
|
|
invoke-static {v0, v5, v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
const v5, 0x7f1210fb
|
|
|
|
new-array v10, v7, [Ljava/lang/Object;
|
|
|
|
aput-object p5, v10, v14
|
|
|
|
invoke-static {v0, v5, v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
:goto_2
|
|
move-object v10, v5
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/16 v13, 0xc
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v14, v5
|
|
|
|
invoke-static/range {v8 .. v14}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(Lcom/discord/utilities/textprocessing/Parsers;Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
if-nez p3, :cond_a
|
|
|
|
if-nez p6, :cond_a
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
const/4 v5, 0x0
|
|
|
|
:goto_3
|
|
const/16 v14, 0x8
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
const/16 v5, 0x8
|
|
|
|
:goto_4
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_c
|
|
|
|
sget-object v5, Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;->PREMIUM_GUILD:Lcom/discord/views/ActiveSubscriptionView$ActiveSubscriptionType;
|
|
|
|
if-eq v1, v5, :cond_c
|
|
|
|
if-nez p6, :cond_c
|
|
|
|
sget-object v5, Lcom/discord/models/domain/ModelSubscription$Status;->CANCELED:Lcom/discord/models/domain/ModelSubscription$Status;
|
|
|
|
if-eq v2, v5, :cond_c
|
|
|
|
if-nez p10, :cond_c
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
const/4 v5, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v5, :cond_d
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
const/16 v5, 0x8
|
|
|
|
:goto_6
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v4, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
sget-object v5, Lf/a/l/b;->h:[I
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v1, v5, v1
|
|
|
|
if-eq v1, v7, :cond_11
|
|
|
|
if-eq v1, v6, :cond_f
|
|
|
|
if-ne v1, v15, :cond_e
|
|
|
|
goto :goto_7
|
|
|
|
:cond_e
|
|
new-instance v1, Ly/g;
|
|
|
|
invoke-direct {v1}, Ly/g;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_f
|
|
:goto_7
|
|
sget-object v1, Lf/a/l/b;->g:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v2
|
|
|
|
aget v1, v1, v2
|
|
|
|
if-eq v1, v7, :cond_10
|
|
|
|
const v1, 0x7f120315
|
|
|
|
goto :goto_8
|
|
|
|
:cond_10
|
|
const v1, 0x7f121209
|
|
|
|
goto :goto_8
|
|
|
|
:cond_11
|
|
const v1, 0x7f12104a
|
|
|
|
:goto_8
|
|
invoke-virtual {v4, v1}, Landroid/widget/Button;->setText(I)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
new-instance v2, Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {v2, v4, v3}, Lcom/discord/views/ActiveSubscriptionView$a;-><init>(ILjava/lang/Object;)V
|
|
|
|
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;
|
|
|
|
if-eqz v3, :cond_12
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_12
|
|
const/4 v2, 0x0
|
|
|
|
:goto_9
|
|
if-eqz v2, :cond_13
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_a
|
|
|
|
:cond_13
|
|
const/16 v2, 0x8
|
|
|
|
:goto_a
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
xor-int/lit8 v2, p4, 0x1
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/Button;->setEnabled(Z)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
new-instance v2, Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
move-object/from16 v3, p8
|
|
|
|
invoke-direct {v2, v7, v3}, Lcom/discord/views/ActiveSubscriptionView$a;-><init>(ILjava/lang/Object;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->j:Landroid/widget/ProgressBar;
|
|
|
|
if-eqz p6, :cond_14
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:cond_14
|
|
invoke-virtual {v1, v14}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_15
|
|
const-string v1, "priceText"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
|
|
:cond_16
|
|
const-string v1, "status"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
|
|
:cond_17
|
|
const-string v1, "activeSubscriptionType"
|
|
|
|
invoke-static {v1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
.end method
|