110 lines
3.7 KiB
Smali
110 lines
3.7 KiB
Smali
.class final Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$onResume$2;
|
|
.super Lkotlin/jvm/internal/k;
|
|
.source "WidgetSettingsPremium.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;->onResume()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$onResume$2;->this$0:Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$onResume$2;->invoke(Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->beH:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;)V
|
|
.locals 9
|
|
|
|
const-string v0, "planType"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/utilities/analytics/Traits$Location;
|
|
|
|
const-string v2, "User Settings"
|
|
|
|
const-string v3, "Discord Nitro"
|
|
|
|
const-string v4, "Button CTA"
|
|
|
|
const-string v5, "buy"
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x10
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/discord/utilities/analytics/Traits$Location;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sget-object v1, Lcom/discord/utilities/nitro/NitroUtils;->INSTANCE:Lcom/discord/utilities/nitro/NitroUtils;
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$onResume$2;->this$0:Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;
|
|
|
|
check-cast v2, Lcom/discord/app/AppFragment;
|
|
|
|
invoke-virtual {v1, v2, p1, v0}, Lcom/discord/utilities/nitro/NitroUtils;->openWebPurchasePremium(Lcom/discord/app/AppFragment;Lcom/discord/models/domain/ModelSubscriptionPlan$SubscriptionPlanType;Lcom/discord/utilities/analytics/Traits$Location;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$onResume$2;->this$0:Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;
|
|
|
|
invoke-static {p1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;->access$getViewModel$p(Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;)Lcom/discord/widgets/settings/nitro/SettingsPremiumViewModel;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/discord/widgets/settings/nitro/SettingsPremiumViewModel;->setLaunchPremiumTabStartTimeMs(J)V
|
|
|
|
return-void
|
|
.end method
|