2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;
|
|
|
|
.super Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
.source "PremiumSwitchPlanPagerAdapter.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/viewpager/widget/PagerAdapter;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureView(Landroid/view/View;I)V
|
|
|
|
.locals 13
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v0, 0x7f0a078b
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "view.findViewById(R.id.premium_switch_page_logo)"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v1, 0x7f0a078a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "view.findViewById(R.id.premium_switch_page_info)"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v1, v2}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v2, 0x7f0a078d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "view.findViewById(R.id.premium_switch_page_wumpus)"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v2, v3}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast v2, Landroid/widget/ImageView;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v3, 0x7f0a078c
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "view.findViewById(R.id.p\u2026witch_page_monthly_price)"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v3, v4}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v4, 0x7f0a0789
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "view.findViewById(R.id.p\u2026m_switch_page_background)"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v4, v5}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;->TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$PremiumTier;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const/high16 v5, 0x3fc00000 # 1.5f
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v6, 0x7f1202fd
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v7, "view.context"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v8, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v9, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eq p2, v9, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v10, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eq p2, v10, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-22 07:09:10 +00:00
|
|
|
const p2, 0x7f0804d0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v11, 0x7f121305
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v11}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const v0, 0x7f10001b
|
|
|
|
|
|
|
|
new-array v11, v9, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
aput-object v12, v11, v8
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v10, v11}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string v0, "view.resources.getQuanti\u2026NS_WITH_PREMIUM\n )"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v0, 0x7f120340
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
new-array v10, v9, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, v10, v8
|
|
|
|
|
|
|
|
invoke-static {p1, v0, v10}, 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
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const p2, 0x7f0804d9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v0, v7}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-array v0, v9, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object p2, v0, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v6, v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, v7}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1, p2, v5}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;->formatText(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;F)Landroid/text/Spannable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const p1, 0x7f08010d
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-09-22 07:09:10 +00:00
|
|
|
const p2, 0x7f0804d3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const v10, 0x7f121304
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
const p2, 0x7f12033f
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {p1, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const p2, 0x7f0804da
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->getPrice()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v0, v7}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-array v0, v9, [Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
aput-object p2, v0, v8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v6, v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, v7}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1, p2, v5}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;->formatText(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;F)Landroid/text/Spannable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const p1, 0x7f08010a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final formatText(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;F)Landroid/text/Spannable;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const-string v0, "DELIM"
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v0, p3, v0}, Lf/e/b/a/a;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x4
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, p3, v1, v2, v3}, Lc0/t/k;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
const/4 v1, 0x6
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p3, v0, v2, v2, v1}, Lc0/t/p;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p3, v0, v2, v2, v1}, Lc0/t/p;->lastIndexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
new-instance v0, Landroid/text/SpannableStringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
new-instance p1, Landroid/text/style/RelativeSizeSpan;
|
|
|
|
|
|
|
|
invoke-direct {p1, p4}, Landroid/text/style/RelativeSizeSpan;-><init>(F)V
|
|
|
|
|
|
|
|
add-int/lit8 p3, p3, -0x5
|
|
|
|
|
|
|
|
const/16 p4, 0x21
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v3, p3, p4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
|
|
|
|
const p1, 0x7f090003
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Landroidx/core/content/res/ResourcesCompat;->getFont(Landroid/content/Context;I)Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/utilities/spans/TypefaceSpanCompat;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Lcom/discord/utilities/spans/TypefaceSpanCompat;-><init>(Landroid/graphics/Typeface;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2, v3, p3, p4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public destroyItem(Landroid/view/ViewGroup;ILjava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string p2, "container"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, p2}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string p2, "view"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p3, p2}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast p3, Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCount()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public instantiateItem(Landroid/view/ViewGroup;I)Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "container"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v1, 0x7f0d0073
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "view"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0, p2}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;->configureView(Landroid/view/View;I)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic instantiateItem(Landroid/view/ViewGroup;I)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter;->instantiateItem(Landroid/view/ViewGroup;I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "view"
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "any"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|