810 lines
19 KiB
Smali
810 lines
19 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$b;,
|
|
Lcom/discord/views/ActiveSubscriptionView$c;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:Lcom/discord/views/ActiveSubscriptionView$c;
|
|
|
|
|
|
# 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$c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/views/ActiveSubscriptionView$c;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/views/ActiveSubscriptionView;->k:Lcom/discord/views/ActiveSubscriptionView$c;
|
|
|
|
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, 0x7f0d00be
|
|
|
|
invoke-static {p1, p2, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
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_subscription_header_text)"
|
|
|
|
invoke-static {p1, p2}, Lt/u/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, 0x7f0a004a
|
|
|
|
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}, Lt/u/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, 0x7f0a004b
|
|
|
|
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}, Lt/u/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, 0x7f0a004c
|
|
|
|
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}, Lt/u/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, 0x7f0a0053
|
|
|
|
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}, Lt/u/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, 0x7f0a0048
|
|
|
|
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}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
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_progress)"
|
|
|
|
invoke-static {p1, p2}, Lt/u/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}, Lt/u/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$b;Lcom/discord/models/domain/ModelSubscription$Status;ZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;I)V
|
|
.locals 12
|
|
|
|
move/from16 v0, p9
|
|
|
|
and-int/lit8 v1, v0, 0x10
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move/from16 v8, p5
|
|
|
|
: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
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object v10, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object/from16 v10, p7
|
|
|
|
:goto_2
|
|
and-int/lit16 v0, v0, 0x80
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
move-object v11, v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object/from16 v11, p8
|
|
|
|
:goto_3
|
|
move-object v3, p0
|
|
|
|
move-object v4, p1
|
|
|
|
move-object v5, p2
|
|
|
|
move v6, p3
|
|
|
|
move-object/from16 v7, p4
|
|
|
|
invoke-virtual/range {v3 .. v11}, Lcom/discord/views/ActiveSubscriptionView;->a(Lcom/discord/views/ActiveSubscriptionView$b;Lcom/discord/models/domain/ModelSubscription$Status;ZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/discord/views/ActiveSubscriptionView$b;Lcom/discord/models/domain/ModelSubscription$Status;ZLjava/lang/CharSequence;ZILkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 17
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/views/ActiveSubscriptionView$b;",
|
|
"Lcom/discord/models/domain/ModelSubscription$Status;",
|
|
"Z",
|
|
"Ljava/lang/CharSequence;",
|
|
"ZI",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p5
|
|
|
|
move-object/from16 v3, p8
|
|
|
|
if-eqz v1, :cond_15
|
|
|
|
if-eqz p2, :cond_14
|
|
|
|
if-eqz p4, :cond_13
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->e:Landroid/widget/ImageView;
|
|
|
|
sget-object v6, Le/a/j/b;->a:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v7
|
|
|
|
aget v6, v6, v7
|
|
|
|
const/4 v7, 0x2
|
|
|
|
const/4 v8, 0x1
|
|
|
|
if-eq v6, v8, :cond_1
|
|
|
|
if-eq v6, v7, :cond_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->a()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->b()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->c()I
|
|
|
|
move-result v6
|
|
|
|
:goto_0
|
|
invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->f:Landroid/widget/ImageView;
|
|
|
|
sget-object v6, Le/a/j/b;->b:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v9
|
|
|
|
aget v6, v6, v9
|
|
|
|
if-eq v6, v8, :cond_3
|
|
|
|
if-eq v6, v7, :cond_2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->d()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->e()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->f()I
|
|
|
|
move-result v6
|
|
|
|
:goto_1
|
|
invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->g:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/views/ActiveSubscriptionView$b;->g()I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->d:Landroid/widget/TextView;
|
|
|
|
sget-object v9, 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 v10
|
|
|
|
const-string v6, "context"
|
|
|
|
invoke-static {v10, v6}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v6, Le/a/j/b;->f:[I
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v11
|
|
|
|
aget v6, v6, v11
|
|
|
|
const/4 v15, 0x3
|
|
|
|
const/4 v14, 0x0
|
|
|
|
if-eq v6, v8, :cond_8
|
|
|
|
if-eq v6, v7, :cond_6
|
|
|
|
if-ne v6, v15, :cond_5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v6
|
|
|
|
const v11, 0x7f1000b8
|
|
|
|
new-array v12, v8, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p6 .. p6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v13
|
|
|
|
aput-object v13, v12, v14
|
|
|
|
move/from16 v13, p6
|
|
|
|
invoke-virtual {v6, v11, v13, v12}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v11, "resources.getQuantityStr\u2026bscriptionCount\n )"
|
|
|
|
invoke-static {v6, v11}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v11, Le/a/j/b;->e:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v12
|
|
|
|
aget v11, v11, v12
|
|
|
|
if-eq v11, v8, :cond_4
|
|
|
|
const v11, 0x7f120ed5
|
|
|
|
new-array v12, v15, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p6 .. p6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
aput-object v13, v12, v14
|
|
|
|
aput-object v6, v12, v8
|
|
|
|
aput-object p4, v12, v7
|
|
|
|
invoke-static {v0, v11, v12}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const v11, 0x7f120ed7
|
|
|
|
new-array v12, v15, [Ljava/lang/Object;
|
|
|
|
invoke-static/range {p6 .. p6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v13
|
|
|
|
aput-object v13, v12, v14
|
|
|
|
aput-object v6, v12, v8
|
|
|
|
aput-object p4, v12, v7
|
|
|
|
invoke-static {v0, v11, v12}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
new-instance v1, Lt/g;
|
|
|
|
invoke-direct {v1}, Lt/g;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_6
|
|
sget-object v6, Le/a/j/b;->d:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v11
|
|
|
|
aget v6, v6, v11
|
|
|
|
if-eq v6, v8, :cond_7
|
|
|
|
const v6, 0x7f120f19
|
|
|
|
new-array v11, v7, [Ljava/lang/Object;
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v12
|
|
|
|
aput-object v12, v11, v14
|
|
|
|
aput-object p4, v11, v8
|
|
|
|
invoke-static {v0, v6, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
const v6, 0x7f120f1a
|
|
|
|
new-array v11, v7, [Ljava/lang/Object;
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v12
|
|
|
|
aput-object v12, v11, v14
|
|
|
|
aput-object p4, v11, v8
|
|
|
|
invoke-static {v0, v6, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
sget-object v6, Le/a/j/b;->c:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v11
|
|
|
|
aget v6, v6, v11
|
|
|
|
if-eq v6, v8, :cond_9
|
|
|
|
const v6, 0x7f120f17
|
|
|
|
new-array v11, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p4, v11, v14
|
|
|
|
invoke-static {v0, v6, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
const v6, 0x7f120f18
|
|
|
|
new-array v11, v8, [Ljava/lang/Object;
|
|
|
|
aput-object p4, v11, v14
|
|
|
|
invoke-static {v0, v6, v11}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
:goto_2
|
|
move-object v11, v6
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/16 v6, 0xc
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move v14, v6
|
|
|
|
const/4 v6, 0x3
|
|
|
|
move-object/from16 v15, v16
|
|
|
|
invoke-static/range {v9 .. v15}, 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 v9
|
|
|
|
invoke-virtual {v5, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
if-nez p3, :cond_a
|
|
|
|
if-nez v2, :cond_a
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
const/4 v9, 0x0
|
|
|
|
:goto_3
|
|
const/16 v14, 0x8
|
|
|
|
if-eqz v9, :cond_b
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
const/16 v9, 0x8
|
|
|
|
:goto_4
|
|
invoke-virtual {v5, v9}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_c
|
|
|
|
sget-object v9, Lcom/discord/views/ActiveSubscriptionView$b;->f:Lcom/discord/views/ActiveSubscriptionView$b;
|
|
|
|
if-eq v1, v9, :cond_c
|
|
|
|
if-nez v2, :cond_c
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
const/4 v9, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v9, :cond_d
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:cond_d
|
|
invoke-virtual {v5, v14}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v5, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
sget-object v9, Le/a/j/b;->h:[I
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v1, v9, v1
|
|
|
|
if-eq v1, v8, :cond_11
|
|
|
|
if-eq v1, v7, :cond_f
|
|
|
|
if-ne v1, v6, :cond_e
|
|
|
|
goto :goto_6
|
|
|
|
:cond_e
|
|
new-instance v1, Lt/g;
|
|
|
|
invoke-direct {v1}, Lt/g;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_f
|
|
:goto_6
|
|
sget-object v1, Le/a/j/b;->g:[I
|
|
|
|
invoke-virtual/range {p2 .. p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v6
|
|
|
|
aget v1, v1, v6
|
|
|
|
if-eq v1, v8, :cond_10
|
|
|
|
const v1, 0x7f1202f3
|
|
|
|
goto :goto_7
|
|
|
|
:cond_10
|
|
const v1, 0x7f120fe9
|
|
|
|
goto :goto_7
|
|
|
|
:cond_11
|
|
const v1, 0x7f120e76
|
|
|
|
:goto_7
|
|
invoke-virtual {v5, v1}, Landroid/widget/Button;->setText(I)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->h:Landroid/widget/Button;
|
|
|
|
new-instance v5, Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
invoke-direct {v5, v4, v3}, Lcom/discord/views/ActiveSubscriptionView$a;-><init>(ILjava/lang/Object;)V
|
|
|
|
invoke-virtual {v1, v5}, 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 v3, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_12
|
|
const/4 v3, 0x0
|
|
|
|
:goto_8
|
|
invoke-virtual {v1, v3}, Landroid/widget/Button;->setEnabled(Z)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->i:Landroid/view/View;
|
|
|
|
new-instance v3, Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
move-object/from16 v5, p7
|
|
|
|
invoke-direct {v3, v8, v5}, Lcom/discord/views/ActiveSubscriptionView$a;-><init>(ILjava/lang/Object;)V
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v1, v0, Lcom/discord/views/ActiveSubscriptionView;->j:Landroid/widget/ProgressBar;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v1, v2, v4, v7, v3}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_13
|
|
const/4 v3, 0x0
|
|
|
|
const-string v1, "priceText"
|
|
|
|
invoke-static {v1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_14
|
|
const/4 v3, 0x0
|
|
|
|
const-string v1, "status"
|
|
|
|
invoke-static {v1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_15
|
|
const/4 v3, 0x0
|
|
|
|
const-string v1, "activeSubscriptionType"
|
|
|
|
invoke-static {v1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
.end method
|