2020-02-12 20:59:48 +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-03-16 23:08:34 +00:00
|
|
|
const v0, 0x7f0a063e
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
const v1, 0x7f0a063d
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
const v2, 0x7f0a0640
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
check-cast v2, Landroid/widget/ImageView;
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
const v3, 0x7f0a063f
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
const v4, 0x7f0a063c
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v4, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +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
|
|
|
|
sget-object v5, Lcom/discord/widgets/settings/premium/PremiumSwitchPlanPagerAdapter$WhenMappings;->$EnumSwitchMapping$0:[I
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
aget p2, v5, p2
|
|
|
|
|
|
|
|
const/high16 v5, 0x3fc00000 # 1.5f
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const v6, 0x7f1202cb
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x2
|
|
|
|
|
|
|
|
const-string v8, "view.context"
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
if-eq p2, v10, :cond_2
|
|
|
|
|
|
|
|
if-eq p2, v7, :cond_1
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-03-14 04:13:36 +00:00
|
|
|
const p2, 0x7f0804b3
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const p2, 0x7f120307
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const p2, 0x7f0804ba
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_1:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v8}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-array v0, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, v0, v9
|
|
|
|
|
|
|
|
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-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v8}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +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-02-24 20:20:24 +00:00
|
|
|
const p1, 0x7f0800e3
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p1}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-03-14 04:13:36 +00:00
|
|
|
const p2, 0x7f0804b0
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const v0, 0x7f100019
|
|
|
|
|
|
|
|
new-array v11, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
aput-object v12, v11, v9
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v7, 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-02-20 19:33:18 +00:00
|
|
|
invoke-static {p2, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const v0, 0x7f120308
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
new-array v7, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, v7, v9
|
|
|
|
|
|
|
|
invoke-static {p1, v0, v7}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getString(Landroid/view/View;I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const p2, 0x7f0804b9
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;->PREMIUM_MONTH_TIER_2:Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
|
|
|
|
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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v8}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lcom/discord/utilities/billing/PremiumUtilsKt;->getFormattedPrice(ILandroid/content/Context;)Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-array v0, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, v0, v9
|
|
|
|
|
|
|
|
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-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v8}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +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-02-24 20:20:24 +00:00
|
|
|
const p1, 0x7f0800e6
|
2020-02-12 20:59:48 +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"
|
|
|
|
|
|
|
|
invoke-static {v0, p3, v0}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x4
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-static {p1, p3, v1, v2, v3}, Lw/a0/p;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZI)Ljava/lang/String;
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
const/4 v1, 0x6
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-static {p3, v0, v2, v2, v1}, Lw/a0/u;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-static {p3, v0, v2, v2, v1}, Lw/a0/u;->lastIndexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
|
2020-02-12 20:59:48 +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
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
check-cast p3, Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "container"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw p2
|
|
|
|
.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
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
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-03-14 04:13:36 +00:00
|
|
|
const v1, 0x7f0d0051
|
2020-02-12 20:59:48 +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-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-12 20:59:48 +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
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "container"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.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
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "any"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-12 20:59:48 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|