2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "IntentUtils.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
|
|
|
|
|
|
|
.field public static final pathRouterMap:Ljava/util/Map;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Lkotlin/text/Regex;",
|
|
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
|
|
"Landroid/net/Uri;",
|
|
|
|
"Lkotlin/text/MatchResult;",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
"Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public 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;
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
const/16 v0, 0xd
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/Pair;
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->t:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$1;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$1;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->u:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$2;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$2;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->w:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$3;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$3;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->x:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$4;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$4;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->y:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$5;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$5;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->z:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$6;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$6;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->s:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$7;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$7;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x6
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->v:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$8;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$8;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x7
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->B:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$9;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$9;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->C:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$10;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$10;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0x9
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->D:Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$11;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$11;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0xa
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->A:Lkotlin/text/Regex;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$12;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$12;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0xb
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v1, Lf/a/b/v0/b;->m:Lkotlin/text/Regex;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
new-instance v2, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$13;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/utilities/intent/RouteHandlers;->INSTANCE:Lcom/discord/utilities/intent/RouteHandlers;
|
|
|
|
|
|
|
|
invoke-direct {v2, v3}, Lcom/discord/utilities/intent/IntentUtils$pathRouterMap$13;-><init>(Lcom/discord/utilities/intent/RouteHandlers;)V
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v3, v1, v2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0xc
|
|
|
|
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {v0}, Lf/h/a/f/f/n/f;->mapOf([Lkotlin/Pair;)Ljava/util/Map;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/utilities/intent/IntentUtils;->pathRouterMap:Ljava/util/Map;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.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;
|
|
|
|
|
|
|
|
: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
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Lf/a/b/v0/b;->a:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.method private final isHttpDomainUrl(Landroid/net/Uri;)Z
|
|
|
|
.locals 3
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
sget-object v0, Lc0/t/d;->d:Lc0/t/d;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
new-instance v1, Lkotlin/text/Regex;
|
|
|
|
|
|
|
|
const-string v2, "https?"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v1, v2, v0}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;Lc0/t/d;)V
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, ""
|
|
|
|
|
|
|
|
:goto_0
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v2, "uri.scheme ?: \"\""
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {v1, v0}, Lkotlin/text/Regex;->matches(Ljava/lang/CharSequence;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
sget-object v0, Lf/a/b/v0/b;->E:Lf/a/b/v0/b;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {v0, p1}, Lf/a/b/v0/b;->a(Ljava/lang/String;)Z
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final notifyFirebaseUserActionStatus(Landroid/content/Intent;Z)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "actions.fulfillment.extra.ACTION_TOKEN"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
const-string v0, "intent.getStringExtra(In\u2026A_VOICE_ACTION) ?: return"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
const-string p2, "http://schema.org/CompletedActionStatus"
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p2, "http://schema.org/FailedActionStatus"
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
new-instance v0, Lf/h/c/h/c/a;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lf/h/c/h/c/a;-><init>()V
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {p1}, Lf/g/j/k/a;->t(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
iput-object p1, v0, Lf/h/c/h/c/a;->f:Ljava/lang/String;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {p2}, Lf/g/j/k/a;->t(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
iput-object p2, v0, Lf/h/c/h/a$a;->e:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lf/h/c/h/a$a;->a()Lf/h/c/h/a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-class p2, Lf/h/c/h/b;
|
|
|
|
|
|
|
|
monitor-enter p2
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
sget-object v0, Lf/h/c/h/b;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget-object v0, Lf/h/c/h/b;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lf/h/c/h/b;
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static {}, Lf/h/c/c;->b()Lf/h/c/c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lf/h/c/c;->a()V
|
|
|
|
|
|
|
|
iget-object v0, v0, Lf/h/c/c;->a:Landroid/content/Context;
|
|
|
|
|
|
|
|
new-instance v1, Lf/h/c/h/d/b;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Lf/h/c/h/d/b;-><init>(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
sput-object v0, Lf/h/c/h/b;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
move-object v0, v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
monitor-exit p2
|
|
|
|
|
|
|
|
check-cast v0, Lf/h/c/h/d/b;
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
new-array p2, p2, [Lcom/google/firebase/appindexing/internal/zza;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
instance-of v1, p1, Lcom/google/firebase/appindexing/internal/zza;
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
new-instance p1, Lcom/google/firebase/appindexing/FirebaseAppIndexingInvalidArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Custom Action objects are not allowed. Please use the \'Actions\' or \'ActionBuilder\' class for creating Action objects."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lcom/google/firebase/appindexing/FirebaseAppIndexingInvalidArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-static {p1}, Lf/h/a/f/f/n/f;->X(Ljava/lang/Exception;)Lcom/google/android/gms/tasks/Task;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
check-cast p1, Lcom/google/firebase/appindexing/internal/zza;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
aput-object p1, p2, v1
|
|
|
|
|
|
|
|
aget-object p1, p2, v1
|
|
|
|
|
|
|
|
iget-object p1, p1, Lcom/google/firebase/appindexing/internal/zza;->h:Lcom/google/firebase/appindexing/internal/zzc;
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
iput v1, p1, Lcom/google/firebase/appindexing/internal/zzc;->d:I
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-object p1, v0, Lf/h/c/h/d/b;->b:Lf/h/c/h/d/c;
|
|
|
|
|
|
|
|
new-instance v0, Lf/h/c/h/d/d;
|
|
|
|
|
|
|
|
invoke-direct {v0, p2}, Lf/h/c/h/d/d;-><init>([Lcom/google/firebase/appindexing/internal/zza;)V
|
|
|
|
|
2020-10-03 03:03:24 +00:00
|
|
|
invoke-virtual {p1, v0}, Lf/h/a/f/f/h/b;->c(Lf/h/a/f/f/h/i/p;)Lcom/google/android/gms/tasks/Task;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p2
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "context"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
const-string/jumbo v0, "text"
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const-string v0, "chooserText"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-10-27 04:20:34 +00:00
|
|
|
const p2, 0x7f1215e3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string p3, "context.getString(R.string.share)"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, p3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
: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;
|
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
const-string/jumbo v0, "text/plain"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p2, ""
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string v0, "android.intent.extra.TEXT"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final consumeExternalRoutingIntent(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "intent"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getDynamicLinkCache()Lcom/discord/stores/StoreDynamicLink;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/discord/stores/StoreDynamicLink;->storeLinkIfExists(Landroid/content/Intent;Landroid/content/Context;)V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils$consumeExternalRoutingIntent$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/utilities/intent/IntentUtils$consumeExternalRoutingIntent$1;-><init>(Landroid/content/Intent;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/discord/utilities/intent/IntentUtils;->consumeRoutingIntent(Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final consumeRoutingIntent(Landroid/content/Intent;Landroid/content/Context;Lkotlin/jvm/functions/Function2;)Z
|
|
|
|
.locals 8
|
|
|
|
.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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "intent"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const-string v0, "context"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "callback"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p3, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v1, "uri"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/utilities/intent/IntentUtils;->isDiscordAppUri(Landroid/net/Uri;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v3, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-nez v1, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0, v0}, Lcom/discord/utilities/intent/IntentUtils;->isHttpDomainUrl(Landroid/net/Uri;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v1, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_2
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {p3, v0, v4}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v1, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
sget-object p3, Lcom/discord/app/AppLog;->e:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-class v1, Lcom/discord/utilities/intent/IntentUtils;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v4, "javaClass.simpleName"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v1, v4}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v4, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v4, "<null>"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_3
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v5, "uri?.toString() ?: \"<null>\""
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v4, v5}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {p3, v1, v4}, Lcom/discord/app/AppLog;->g(Ljava/lang/String;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v1, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
check-cast v4, Lkotlin/text/Regex;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function3;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v5, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v7, "it"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v5, v7}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v4, v5}, Lkotlin/text/Regex;->matchEntire(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_5
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v4, v6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_4
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v4, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {v1, v0, v4, p2}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;
|
2020-07-25 00:57:58 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
goto :goto_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
:catch_0
|
|
|
|
sget-object p2, Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;->Companion:Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata$Companion;->getUNKNOWN()Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object p2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
:goto_5
|
|
|
|
sget-object p3, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p1, p3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
sget-object p3, Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;->Companion:Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata$Companion;->getUNKNOWN()Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result-object p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, p3}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
move-result p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
xor-int/2addr p3, v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-28 19:40:16 +00:00
|
|
|
sget-object v1, Lcom/discord/app/AppLog;->e:Lcom/discord/app/AppLog;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "Intent handler activated for "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, ", consumed: "
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x2
|
2020-07-25 00:57:58 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {v1, v0, v6, v2, v6}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
2020-07-25 00:57:58 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p3}, Lcom/discord/utilities/intent/IntentUtils;->notifyFirebaseUserActionStatus(Landroid/content/Intent;Z)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/discord/stores/StoreAnalytics;->deepLinkReceived(Landroid/content/Intent;Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;)V
|
|
|
|
|
|
|
|
return p3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_6
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0, p1, v3}, Lcom/discord/utilities/intent/IntentUtils;->notifyFirebaseUserActionStatus(Landroid/content/Intent;Z)V
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return v3
|
2020-07-14 22:43:59 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getDirectShareId(Landroid/content/Intent;)Ljava/lang/Long;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "$this$getDirectShareId"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "android.intent.extra.shortcut.ID"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1}, Lc0/t/j;->toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object p1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_0
|
|
|
|
return-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final isDiscordAppUri(Landroid/net/Uri;)Z
|
|
|
|
.locals 4
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string/jumbo v0, "uri"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v1, "discord"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lc0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v1, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v0, :cond_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "Locale.ENGLISH"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object p1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "(this as java.lang.String).toLowerCase(locale)"
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 p1, 0x0
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v3, -0x54d081ca
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eq v0, v3, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const v3, 0x17a21
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eq v0, v3, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "app"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "action"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_4
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_5
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_4
|
|
|
|
return v2
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final toExternalizedSend(Landroid/content/Intent;)Landroid/content/Intent;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "$this$toExternalizedSend"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v1, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v1, v0}, Lcom/discord/utilities/intent/IntentUtils;->externalize(Landroid/net/Uri;)Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v0, Lcom/discord/utilities/intent/IntentUtils;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
goto :goto_1
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/discord/utilities/intent/IntentUtils;->sendText(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;
|
2020-09-16 21:45:36 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|