2019-10-01 14:15:45 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetSettingsPremium.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2019-10-01 14:15:45 +00:00
|
|
|
value = Lcom/discord/widgets/settings/premium/WidgetSettingsPremium;
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Companion"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
.method public static final synthetic access$getTag(Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;->getTag(Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
.method private final getTag(Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog$CancelPremium;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string p1, "CancelPremium"
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-10-01 14:15:45 +00:00
|
|
|
instance-of v0, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog$DowngradePremium;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
const-string p1, "DowngradePremium"
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-10-01 14:15:45 +00:00
|
|
|
instance-of p1, p1, Lcom/discord/widgets/settings/premium/SettingsPremiumViewModel$Dialog$UpgradePremium;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
const-string p1, "UpgradePremium"
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance p1, Ls/g;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {p1}, Ls/g;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
.method public static synthetic launch$default(Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;Landroid/content/Context;Ljava/lang/Integer;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;->launch(Landroid/content/Context;Ljava/lang/Integer;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final launch(Landroid/content/Context;Ljava/lang/Integer;)V
|
2019-12-13 02:35:12 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
move-result-object v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
const-string v2, "Discord Nitro"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/stores/StoreAnalytics;->onUserSettingsPaneViewed(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
const-class v1, Lcom/discord/widgets/settings/premium/WidgetSettingsPremium;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance v2, Landroid/content/Intent;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v2}, Landroid/content/Intent;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
const-string v3, "intent_section"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, v3, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
const/16 v2, 0x8
|
|
|
|
|
|
|
|
invoke-static {p1, v1, p2, v0, v2}, Le/a/b/h;->a(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;Ljava/lang/Class;I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onSuccess(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
.locals 3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v2, "NITRO Success signal "
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v2, p2}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v1, p2, v0, v2, v0}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {p0, p1, v0, v2, v0}, Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;->launch$default(Lcom/discord/widgets/settings/premium/WidgetSettingsPremium$Companion;Landroid/content/Context;Ljava/lang/Integer;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "type"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
|
|
|
const-string p1, "context"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|