2019-08-16 21:39:58 +00:00
|
|
|
.class final Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Lkotlin/jvm/internal/l;
|
2019-08-16 21:39:58 +00:00
|
|
|
.source "RouteHandlers.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2019-08-16 21:39:58 +00:00
|
|
|
value = Lcom/discord/utilities/intent/RouteHandlers;->selectSettings(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/jvm/internal/l;",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Landroidx/fragment/app/FragmentActivity;",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic $settingsSubPath:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field final synthetic $uri:Landroid/net/Uri;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;->$settingsSubPath:Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;->$uri:Landroid/net/Uri;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/l;-><init>(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;->invoke(Landroidx/fragment/app/FragmentActivity;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Landroidx/fragment/app/FragmentActivity;)Z
|
2019-08-31 00:40:57 +00:00
|
|
|
.locals 7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v0, "ctx"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;->$settingsSubPath:Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sparse-switch v1, :sswitch_data_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
goto :goto_0
|
2019-07-26 02:05:13 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:sswitch_0
|
|
|
|
const-string v1, "/voice"
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
move-result v0
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/settings/WidgetSettingsVoice;->Companion:Lcom/discord/widgets/settings/WidgetSettingsVoice$Companion;
|
2019-07-27 00:12:07 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
check-cast v2, Landroid/content/Context;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
const/4 v5, 0x6
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/widgets/settings/WidgetSettingsVoice$Companion;->launch$default(Lcom/discord/widgets/settings/WidgetSettingsVoice$Companion;Landroid/content/Context;Ljava/lang/Integer;ZILjava/lang/Object;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_1
|
2019-07-24 11:27:29 +00:00
|
|
|
const-string v1, "/nitro"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium;->Companion:Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$Companion;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
|
2019-08-16 21:39:58 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/utilities/intent/RouteHandlers$selectSettings$1;->$uri:Landroid/net/Uri;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v2, "success"
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-nez v1, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v1, ""
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v0, p1, v1}, Lcom/discord/widgets/settings/nitro/WidgetSettingsPremium$Companion;->onSuccess(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:sswitch_2
|
2019-07-24 11:27:29 +00:00
|
|
|
const-string v1, "/billing"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/billing/WidgetSettingsBilling;->Companion:Lcom/discord/widgets/settings/billing/WidgetSettingsBilling$Companion;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/settings/billing/WidgetSettingsBilling$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:sswitch_3
|
2019-07-24 11:27:29 +00:00
|
|
|
const-string v1, "/game"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz v0, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettingsGameActivity;->Companion:Lcom/discord/widgets/settings/WidgetSettingsGameActivity$Companion;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/settings/WidgetSettingsGameActivity$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_0
|
|
|
|
sget-object v0, Lcom/discord/widgets/settings/WidgetSettings;->Companion:Lcom/discord/widgets/settings/WidgetSettings$Companion;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/settings/WidgetSettings$Companion;->launch(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
0x2c69ca1 -> :sswitch_3
|
|
|
|
0xbcb5f6c -> :sswitch_2
|
|
|
|
0x56735b47 -> :sswitch_1
|
|
|
|
0x56e6a663 -> :sswitch_0
|
|
|
|
.end sparse-switch
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|