930 lines
23 KiB
Smali
930 lines
23 KiB
Smali
.class final Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
.super Ljava/lang/Object;
|
|
.source "IntentUtils.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/utilities/intent/IntentUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "RouteHandlers"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final acceptGift(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 p3, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-static {p2}, Lkotlin/a/m;->ad(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p2, p3
|
|
|
|
:goto_0
|
|
const-string v0, "source"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v1}, Lkotlin/text/l;->j(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
xor-int/2addr v1, v0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object p1, p3
|
|
|
|
:goto_1
|
|
if-nez p1, :cond_3
|
|
|
|
:cond_2
|
|
const-string p1, "Deeplink"
|
|
|
|
:cond_3
|
|
if-eqz p2, :cond_4
|
|
|
|
move-object p3, p2
|
|
|
|
check-cast p3, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {p3}, Lkotlin/text/l;->j(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p3
|
|
|
|
xor-int/2addr p3, v0
|
|
|
|
if-ne p3, v0, :cond_4
|
|
|
|
sget-object p3, Lcom/discord/a/c;->wH:Lcom/discord/a/c$a;
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
invoke-static {p2, p1, v0, v1}, Lcom/discord/a/c$a;->a(Ljava/lang/String;Ljava/lang/String;J)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final authorize(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
const-string p2, "uri"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p2, "context"
|
|
|
|
invoke-static {p3, p2}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object p2, Lcom/discord/widgets/auth/WidgetOauthAuthorize;->Companion:Lcom/discord/widgets/auth/WidgetOauthAuthorize$Companion;
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/widgets/auth/WidgetOauthAuthorize$Companion;->launch(Landroid/net/Uri;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final selectChannel(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 11
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p3, p1}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v2
|
|
|
|
move-wide v6, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide v6, v0
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p2, 0x3
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-static {p1}, Lkotlin/text/l;->dU(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-wide p1, v0
|
|
|
|
:goto_1
|
|
cmp-long v2, p1, v0
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x4
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v5, p3
|
|
|
|
invoke-static/range {v4 .. v10}, Lcom/discord/stores/StoreChannelsSelected;->findAndSet$default(Lcom/discord/stores/StoreChannelsSelected;Landroid/content/Context;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
sget-object p3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreStream$Companion;->getMessagesLoader()Lcom/discord/stores/StoreMessagesLoader;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3, v6, v7, p1, p2}, Lcom/discord/stores/StoreMessagesLoader;->jumpToMessage(JJ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final selectDirectMessage(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 7
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p3, p1}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Lkotlin/a/m;->ad(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Lkotlin/text/l;->dU(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, p3
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/stores/StoreChannelsSelected;->findAndSetDirectMessage$default(Lcom/discord/stores/StoreChannelsSelected;Landroid/content/Context;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final selectLurk(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 14
|
|
|
|
const-string v0, "uri"
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface/range {p2 .. p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide v2, v0
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-interface/range {p2 .. p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
const/4 v5, 0x2
|
|
|
|
invoke-interface {v4, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-static {v4}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
:cond_1
|
|
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getGatewaySocket()Lcom/discord/stores/StoreGatewayConnection;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lcom/discord/stores/StoreGatewayConnection;->getConnectionReady()Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreStream$Companion;->isInitializedObservable()Lrx/Observable;
|
|
|
|
move-result-object v5
|
|
|
|
sget-object v6, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$1;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$1;
|
|
|
|
check-cast v6, Lrx/functions/Func2;
|
|
|
|
invoke-static {v4, v5, v6}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$2;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$2;
|
|
|
|
check-cast v5, Lrx/functions/b;
|
|
|
|
invoke-virtual {v4, v5}, Lrx/Observable;->b(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v4, "Observable.combineLatest\u2026er { isReady -> isReady }"
|
|
|
|
invoke-static {v6, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v7, 0x2710
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x2
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v6 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->takeSingleUntilTimeout$default(Lrx/Observable;JZILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
new-instance v4, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$3;
|
|
|
|
invoke-direct {v4, v2, v3, v0, v1}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectLurk$3;-><init>(JJ)V
|
|
|
|
move-object v11, v4
|
|
|
|
check-cast v11, Lkotlin/jvm/functions/Function1;
|
|
|
|
const/16 v12, 0x1e
|
|
|
|
const/4 v13, 0x0
|
|
|
|
invoke-static/range {v5 .. v13}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final selectProfile(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p3, p1}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Lkotlin/a/m;->ad(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide/16 p1, 0x0
|
|
|
|
:goto_1
|
|
invoke-static {p3, p1, p2}, Lcom/discord/widgets/user/WidgetUserProfile;->launch(Landroid/content/Context;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final selectSettings(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
invoke-static {p2, p3}, Lkotlin/a/m;->d(Ljava/util/List;I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
sget-object p3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreStream$Companion;->getNavigation()Lcom/discord/stores/StoreNavigation;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "ROUTING:"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectSettings$1;
|
|
|
|
invoke-direct {v1, p2, p1}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$selectSettings$1;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-virtual {p3, v0, v1}, Lcom/discord/stores/StoreNavigation;->launchNotice(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final useInvite(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 p3, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-static {p2}, Lkotlin/a/m;->ad(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p2, p3
|
|
|
|
:goto_0
|
|
const-string v0, "source"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v0}, Lkotlin/text/l;->j(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object p1, p3
|
|
|
|
:goto_1
|
|
if-nez p1, :cond_3
|
|
|
|
:cond_2
|
|
const-string p1, "Deeplink"
|
|
|
|
:cond_3
|
|
if-eqz p2, :cond_4
|
|
|
|
sget-object p3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreStream$Companion;->getInviteSettings()Lcom/discord/stores/StoreInviteSettings;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3, p2, p1}, Lcom/discord/stores/StoreInviteSettings;->setInviteCode(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final voiceConnect(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 11
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-static {p2}, Lkotlin/text/l;->dU(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
:goto_0
|
|
const/4 p2, 0x0
|
|
|
|
const-string v2, "service_denied"
|
|
|
|
invoke-virtual {p1, v2, p2}, Landroid/net/Uri;->getBooleanQueryParameter(Ljava/lang/String;Z)Z
|
|
|
|
move-result p1
|
|
|
|
new-instance p2, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {p2, p3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
sget-object p3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreStream$Companion;->getChannels()Lcom/discord/stores/StoreChannels;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3, v0, v1}, Lcom/discord/stores/StoreChannels;->get(J)Lrx/Observable;
|
|
|
|
move-result-object p3
|
|
|
|
sget-object v2, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$1;
|
|
|
|
check-cast v2, Lrx/functions/b;
|
|
|
|
invoke-virtual {p3, v2}, Lrx/Observable;->b(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object p3
|
|
|
|
sget-object v2, Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;->INSTANCE:Lcom/discord/utilities/rx/ObservableExtensionsKt$filterNull$2;
|
|
|
|
check-cast v2, Lrx/functions/b;
|
|
|
|
invoke-virtual {p3, v2}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-string p3, "filter { it != null }.map { it!! }"
|
|
|
|
invoke-static {v3, p3}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v3 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->takeSingleUntilTimeout$default(Lrx/Observable;JZILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
new-instance p3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$voiceConnect$1;
|
|
|
|
invoke-direct {p3, p2, v0, v1, p1}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$voiceConnect$1;-><init>(Ljava/lang/ref/WeakReference;JZ)V
|
|
|
|
move-object v8, p3
|
|
|
|
check-cast v8, Lkotlin/jvm/functions/Function1;
|
|
|
|
const/16 v9, 0x1e
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final wildCardMatcher(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
const-string v0, "uri"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-interface {p2}, Lkotlin/text/MatchResult;->Er()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, v1}, Lkotlin/a/m;->d(Ljava/util/List;I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v1}, Lkotlin/text/l;->j(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_2
|
|
if-nez v0, :cond_3
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_4
|
|
|
|
:sswitch_0
|
|
const-string v1, "discord.gift"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v1, "discord.gg"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:sswitch_2
|
|
const-string v1, "gift"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:goto_1
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$wildCardMatcher$actualHandler$1;
|
|
|
|
sget-object v1, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$wildCardMatcher$actualHandler$1;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_3
|
|
const-string v1, "invite"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:goto_2
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$wildCardMatcher$actualHandler$2;
|
|
|
|
sget-object v1, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers$wildCardMatcher$actualHandler$2;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
:goto_3
|
|
check-cast v0, Lkotlin/jvm/functions/Function3;
|
|
|
|
invoke-interface {v0, p1, p2, p3}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_4
|
|
:goto_4
|
|
return-void
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x468dd0f7 -> :sswitch_3
|
|
0x306930 -> :sswitch_2
|
|
0x1fd05ce2 -> :sswitch_1
|
|
0x6d2cc0b2 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|