2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;
|
|
|
|
.super Landroid/widget/FrameLayout;
|
|
|
|
.source "PremiumGuildSubscriptionUpsellView.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-09-16 23:45:23 +00:00
|
|
|
.field public final d:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final e:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
.field public final f:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0, v0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const p2, 0x7f0d0144
|
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-10-19 23:59:54 +00:00
|
|
|
const p1, 0x7f0a0b2c
|
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.view_p\u2026m_upsell_info_subheading)"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
check-cast p1, Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->d:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const p1, 0x7f0a0b2e
|
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.view_p\u2026ll_info_subheading_price)"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->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/premiumguild/PremiumGuildSubscriptionUpsellView;->e:Landroid/widget/TextView;
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const p1, 0x7f0a0b2d
|
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.view_p\u2026ll_info_subheading_blurb)"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->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/premiumguild/PremiumGuildSubscriptionUpsellView;->f:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;Z)V
|
2020-10-27 04:20:34 +00:00
|
|
|
.locals 13
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const-string/jumbo v0, "userPremiumTier"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->f:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 p2, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-10-27 04:20:34 +00:00
|
|
|
const/16 p2, 0x8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {v0, p2}, Landroid/view/View;->setVisibility(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 p2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v0, p2, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
sget-object v2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_GUILD_MONTH:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const-string v4, "context"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v3, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v2, v3}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v2, v0, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v2, 0x7f12030b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v2, v0}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v3, p2, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
sget-object v5, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_GUILD_MONTH:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
int-to-float v5, v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v6, 0x3f333333 # 0.7f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
mul-float v5, v5, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
float-to-int v5, v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v6, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v5, v6}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v5, v3, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v2, v3}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v3, 0x7f120b78
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v5, p2, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {}, Ljava/text/NumberFormat;->getPercentInstance()Ljava/text/NumberFormat;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v7, 0x3e99999a # 0.3f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/text/NumberFormat;->format(Ljava/lang/Object;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const-string v7, "NumberFormat.getPercentI\u2026ISCOUNT_PERCENT\n )"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v6, v7}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v6, v5, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v3, v5}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v5, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v6, 0x7f120b81
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v12, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v7, v12, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v2, v7, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v0, v7, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v6, v7}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v7, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v2, 0x7f040177
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v2}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/view/View;I)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v9, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/16 v10, 0x14
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(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-10-27 04:20:34 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
if-eqz p1, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
if-eq p1, p2, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
if-eq p1, v12, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->d:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v5, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v0, 0x7f120b86
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v4, v12, [Ljava/lang/Object;
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v12}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v6, v4, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v3, v4, p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v0, v4}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v7, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v8, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v9, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/16 v10, 0x1c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(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-10-27 04:20:34 +00:00
|
|
|
move-result-object p2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->e:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->d:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
move-result-object v5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {v5, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v0, 0x7f120b84
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array p2, p2, [Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v3, p2, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v0, p2}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v7, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v8, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v9, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/16 v10, 0x1c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 v11, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static/range {v5 .. v11}, Lcom/discord/utilities/textprocessing/Parsers;->parseMarkdown$default(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-10-27 04:20:34 +00:00
|
|
|
move-result-object p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->e:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p1, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->d:Landroid/widget/TextView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const v2, 0x7f120b80
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array p2, p2, [Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
aput-object v0, p2, v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p0, v2, p2}, 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-10-27 04:20:34 +00:00
|
|
|
move-result-object p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p1, p2, v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextWithMarkdown(Landroid/widget/TextView;Ljava/lang/String;[Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/premiumguild/PremiumGuildSubscriptionUpsellView;->e:Landroid/widget/TextView;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const/4 p2, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
invoke-static {p1, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
.end method
|