345 lines
13 KiB
Smali
345 lines
13 KiB
Smali
.class public final Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;
|
|
.super Ly/n/c/k;
|
|
.source "WidgetChoosePlan.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function3;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/settings/premium/WidgetChoosePlan;->setUpRecycler()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ly/n/c/k;",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"Lcom/discord/utilities/billing/GooglePlaySku;",
|
|
"Ljava/lang/String;",
|
|
"Lcom/android/billingclient/api/SkuDetails;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $locationTrait:Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/settings/premium/WidgetChoosePlan;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/settings/premium/WidgetChoosePlan;Lcom/discord/utilities/analytics/Traits$Location;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->this$0:Lcom/discord/widgets/settings/premium/WidgetChoosePlan;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->$locationTrait:Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
const/4 p1, 0x3
|
|
|
|
invoke-direct {p0, p1}, Ly/n/c/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/utilities/billing/GooglePlaySku;
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
check-cast p3, Lcom/android/billingclient/api/SkuDetails;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->invoke(Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;Lcom/android/billingclient/api/SkuDetails;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;Lcom/android/billingclient/api/SkuDetails;)V
|
|
.locals 10
|
|
|
|
const-string v0, "sku"
|
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getUpgrade()Lcom/discord/utilities/billing/GooglePlaySku;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "upgradePrice"
|
|
|
|
const-string v2, "fragmentManager"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "upgradeSkuDetails.price"
|
|
|
|
const-string v5, "parentFragmentManager"
|
|
|
|
const-string v6, "plan_select"
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getType()Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v7, Lcom/discord/utilities/billing/GooglePlaySku$Type;->PREMIUM_GUILD:Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
if-ne v0, v7, :cond_1
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
iget-object v7, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->$locationTrait:Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
sget-object v8, Lcom/discord/utilities/analytics/Traits$Subscription;->Companion:Lcom/discord/utilities/analytics/Traits$Subscription$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getSkuName()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Lcom/discord/utilities/analytics/Traits$Subscription$Companion;->withGatewayPlanId(Ljava/lang/String;)Lcom/discord/utilities/analytics/Traits$Subscription;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v9, "premium_upsell"
|
|
|
|
invoke-virtual {v0, v7, v8, v9, v6}, Lcom/discord/utilities/analytics/AnalyticsTracker;->paymentFlowStep(Lcom/discord/utilities/analytics/Traits$Location;Lcom/discord/utilities/analytics/Traits$Subscription;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lf/a/a/e/a;->n:Lf/a/a/e/a$b;
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->this$0:Lcom/discord/widgets/settings/premium/WidgetChoosePlan;
|
|
|
|
invoke-virtual {v6}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6, v5}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v5, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$1;
|
|
|
|
invoke-direct {v5, p0, p1, p2}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$1;-><init>(Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;)V
|
|
|
|
new-instance v7, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$2;
|
|
|
|
invoke-direct {v7, p0, p1, p2}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$2;-><init>(Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/android/billingclient/api/SkuDetails;->b()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v4}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getSkuName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p2}, Ly/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {v6, v2}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p2, "onContinueClickListener"
|
|
|
|
invoke-static {v5, p2}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p2, "onUpgradeClickListener"
|
|
|
|
invoke-static {v7, p2}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p3, v1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p2, Lf/a/a/e/a;
|
|
|
|
invoke-direct {p2}, Lf/a/a/e/a;-><init>()V
|
|
|
|
iput-object v5, p2, Lf/a/a/e/a;->d:Lkotlin/jvm/functions/Function0;
|
|
|
|
iput-object v7, p2, Lf/a/a/e/a;->e:Lkotlin/jvm/functions/Function0;
|
|
|
|
iput-object p3, p2, Lf/a/a/e/a;->f:Ljava/lang/String;
|
|
|
|
iput-boolean p1, p2, Lf/a/a/e/a;->g:Z
|
|
|
|
const-class p1, Lf/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, v6, p1}, Lcom/discord/app/AppDialog;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_0
|
|
throw v3
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getUpgrade()Lcom/discord/utilities/billing/GooglePlaySku;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
iget-object v7, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->$locationTrait:Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
sget-object v8, Lcom/discord/utilities/analytics/Traits$Subscription;->Companion:Lcom/discord/utilities/analytics/Traits$Subscription$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getSkuName()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Lcom/discord/utilities/analytics/Traits$Subscription$Companion;->withGatewayPlanId(Ljava/lang/String;)Lcom/discord/utilities/analytics/Traits$Subscription;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v9, "yearly_upsell"
|
|
|
|
invoke-virtual {v0, v7, v8, v9, v6}, Lcom/discord/utilities/analytics/AnalyticsTracker;->paymentFlowStep(Lcom/discord/utilities/analytics/Traits$Location;Lcom/discord/utilities/analytics/Traits$Subscription;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lf/a/a/e/b;->n:Lf/a/a/e/b$b;
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->this$0:Lcom/discord/widgets/settings/premium/WidgetChoosePlan;
|
|
|
|
invoke-virtual {v6}, Landroidx/fragment/app/Fragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6, v5}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v5, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$3;
|
|
|
|
invoke-direct {v5, p0, p1, p2}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$3;-><init>(Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;)V
|
|
|
|
new-instance v7, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$4;
|
|
|
|
invoke-direct {v7, p0, p1, p2}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2$4;-><init>(Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Lcom/android/billingclient/api/SkuDetails;->b()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3, v4}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getSkuName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, p2}, Ly/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getType()Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v8, Lcom/discord/utilities/billing/GooglePlaySku$Type;->PREMIUM_TIER_1:Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
if-eq v4, v8, :cond_3
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlaySku;->getType()Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v4, Lcom/discord/utilities/billing/GooglePlaySku$Type;->PREMIUM_TIER_1_AND_PREMIUM_GUILD:Lcom/discord/utilities/billing/GooglePlaySku$Type;
|
|
|
|
if-ne p1, v4, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-static {v6, v2}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onMonthlyClickListener"
|
|
|
|
invoke-static {v5, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "onYearlyClickListener"
|
|
|
|
invoke-static {v7, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p3, v1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lf/a/a/e/b;
|
|
|
|
invoke-direct {v0}, Lf/a/a/e/b;-><init>()V
|
|
|
|
iput-object v5, v0, Lf/a/a/e/b;->d:Lkotlin/jvm/functions/Function0;
|
|
|
|
iput-object v7, v0, Lf/a/a/e/b;->e:Lkotlin/jvm/functions/Function0;
|
|
|
|
iput-object p3, v0, Lf/a/a/e/b;->f:Ljava/lang/String;
|
|
|
|
iput-boolean p2, v0, Lf/a/a/e/b;->g:Z
|
|
|
|
new-instance p2, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p2}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string p3, "ARG_IS_TIER_1"
|
|
|
|
invoke-virtual {p2, p3, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
invoke-virtual {v0, p2}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
const-class p1, Lf/a/a/e/b;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, v6, p1}, Lcom/discord/app/AppDialog;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
throw v3
|
|
|
|
:cond_5
|
|
iget-object p3, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->this$0:Lcom/discord/widgets/settings/premium/WidgetChoosePlan;
|
|
|
|
invoke-static {p3}, Lcom/discord/widgets/settings/premium/WidgetChoosePlan;->access$getViewModel$p(Lcom/discord/widgets/settings/premium/WidgetChoosePlan;)Lcom/discord/widgets/settings/premium/ChoosePlanViewModel;
|
|
|
|
move-result-object p3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/premium/WidgetChoosePlan$setUpRecycler$2;->$locationTrait:Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
invoke-virtual {p3, p1, p2, v0, v6}, Lcom/discord/widgets/settings/premium/ChoosePlanViewModel;->buy(Lcom/discord/utilities/billing/GooglePlaySku;Ljava/lang/String;Lcom/discord/utilities/analytics/Traits$Location;Ljava/lang/String;)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|