622 lines
18 KiB
Smali
622 lines
18 KiB
Smali
.class public final Lcom/discord/utilities/intent/IntentUtils;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;,
|
|
Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
.field private static final pathRouterMap:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Lkotlin/text/Regex;",
|
|
"Lkotlin/reflect/KFunction<",
|
|
"Lkotlin/Unit;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/intent/IntentUtils;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
const/4 v0, 0x5
|
|
|
|
new-array v0, v0, [Lkotlin/Pair;
|
|
|
|
sget-object v1, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dF()Lkotlin/text/Regex;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$1;
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$1;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dG()Lkotlin/text/Regex;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$2;
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$2;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dH()Lkotlin/text/Regex;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$3;
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$3;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dI()Lkotlin/text/Regex;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$4;
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$4;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dD()Lkotlin/text/Regex;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$5;
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$5;-><init>(Lcom/discord/utilities/intent/IntentUtils$RouteHandlers;)V
|
|
|
|
invoke-static {v1, v2}, Lkotlin/q;->w(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Lkotlin/a/ab;->a([Lkotlin/Pair;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/discord/utilities/intent/IntentUtils;->pathRouterMap:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final consumeExternalRoutingIntent(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
.locals 2
|
|
|
|
const-string v0, "intent"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getDynamicLinkCache()Lcom/discord/stores/StoreDynamicLink;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreDynamicLink;->storeLinkIfExists(Landroid/content/Intent;Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
new-instance v1, Lcom/discord/utilities/intent/IntentUtils$consumeExternalRoutingIntent$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/utilities/intent/IntentUtils$consumeExternalRoutingIntent$1;-><init>(Landroid/content/Intent;)V
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-virtual {v0, p0, p1, v1}, Lcom/discord/utilities/intent/IntentUtils;->consumeRoutingIntent(Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic consumeRoutingIntent$default(Lcom/discord/utilities/intent/IntentUtils;Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
sget-object p3, Lcom/discord/utilities/intent/IntentUtils$consumeRoutingIntent$1;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$consumeRoutingIntent$1;
|
|
|
|
check-cast p3, Lkotlin/jvm/functions/Function2;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/utilities/intent/IntentUtils;->consumeRoutingIntent(Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private final externalize(Landroid/net/Uri;)Landroid/net/Uri;
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "https"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/net/Uri$Builder;->scheme(Ljava/lang/String;)Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-static {}, Lcom/discord/app/a/a;->dB()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/net/Uri$Builder;->authority(Ljava/lang/String;)Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri$Builder;->build()Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private final isHttpDomainUrl(Landroid/net/Uri;)Z
|
|
.locals 3
|
|
|
|
const-string v0, "https?"
|
|
|
|
sget-object v1, Lkotlin/text/k;->bRp:Lkotlin/text/k;
|
|
|
|
new-instance v2, Lkotlin/text/Regex;
|
|
|
|
invoke-direct {v2, v0, v1}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;Lkotlin/text/k;)V
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v0, ""
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
invoke-virtual {v2, v0}, Lkotlin/text/Regex;->g(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
sget-object v0, Lcom/discord/app/a/a;->vd:Lcom/discord/app/a/a;
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/discord/app/a/a;->ab(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static final performChooserSendIntent(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x4
|
|
|
|
invoke-static {p0, p1, v0, v1, v0}, Lcom/discord/utilities/intent/IntentUtils;->performChooserSendIntent$default(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final performChooserSendIntent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "text"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "chooserText"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
const-string v2, "android.intent.action.SEND"
|
|
|
|
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/discord/utilities/intent/IntentUtils;->sendText(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p2, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {p1, p2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic performChooserSendIntent$default(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x4
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const p2, 0x7f120d32
|
|
|
|
invoke-virtual {p0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "context.getString(R.string.share)"
|
|
|
|
invoke-static {p2, p3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lcom/discord/utilities/intent/IntentUtils;->performChooserSendIntent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final sendText(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;
|
|
.locals 1
|
|
|
|
const-string v0, "android.intent.action.SEND"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v0, "text/plain"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v0, "android.intent.extra.TEXT"
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const-string p2, ""
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final toExternalizedSend(Landroid/content/Intent;)Landroid/content/Intent;
|
|
.locals 2
|
|
|
|
const-string v0, "receiver$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
invoke-direct {v1, v0}, Lcom/discord/utilities/intent/IntentUtils;->externalize(Landroid/net/Uri;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
:cond_0
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
|
|
|
sget-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
invoke-virtual {p0}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-direct {v0, p0, v1}, Lcom/discord/utilities/intent/IntentUtils;->sendText(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final consumeRoutingIntent(Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;)Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Intent;",
|
|
"Landroid/content/Context;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-",
|
|
"Landroid/net/Uri;",
|
|
"-",
|
|
"Ljava/lang/Boolean;",
|
|
"Lkotlin/Unit;",
|
|
">;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "intent"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "callback"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
|
|
|
:cond_0
|
|
const-string v1, "discord"
|
|
|
|
const-string v2, "uri"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Lkotlin/text/l;->ad(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/intent/IntentUtils;->isHttpDomainUrl(Landroid/net/Uri;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
:goto_1
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {p3, v0, v4}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v1, "javaClass.simpleName"
|
|
|
|
invoke-static {p3, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
const-string v1, "<null>"
|
|
|
|
:cond_3
|
|
invoke-static {p3, v1}, Lcom/discord/app/AppLog;->n(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object p3, Lcom/discord/utilities/intent/IntentUtils;->pathRouterMap:Ljava/util/Map;
|
|
|
|
invoke-interface {p3}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-interface {p3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p3
|
|
|
|
:cond_4
|
|
invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lkotlin/text/Regex;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lkotlin/reflect/KFunction;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
check-cast v5, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v4, v5}, Lkotlin/text/Regex;->i(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const/4 v4, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v4, :cond_4
|
|
|
|
:try_start_0
|
|
check-cast v1, Lkotlin/jvm/functions/Function3;
|
|
|
|
invoke-interface {v1, v0, v4, p2}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
sget-object p2, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
|
|
|
return v3
|
|
|
|
:cond_6
|
|
return v2
|
|
.end method
|