107 lines
3.3 KiB
Smali
107 lines
3.3 KiB
Smali
.class public final Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;
|
|
.super Lt/u/b/k;
|
|
.source "RouteHandlers.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/intent/RouteHandlers;->voiceConnect(Landroid/net/Uri;Lkotlin/text/MatchResult;Landroid/content/Context;)Lcom/discord/utilities/intent/RouteHandlers$AnalyticsMetadata;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lt/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $channelId:J
|
|
|
|
.field public final synthetic $isServicePermissionDeniedRedirect:Z
|
|
|
|
.field public final synthetic $weakContext:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/ref/WeakReference;JZ)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$weakContext:Ljava/lang/ref/WeakReference;
|
|
|
|
iput-wide p2, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$channelId:J
|
|
|
|
iput-boolean p4, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$isServicePermissionDeniedRedirect:Z
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->invoke(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Lcom/discord/models/domain/ModelChannel;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$weakContext:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "weakContext.get() ?: return@appSubscribe"
|
|
|
|
invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "channel"
|
|
|
|
invoke-static {p1, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
sget-object p1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
iget-wide v1, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$channelId:J
|
|
|
|
iget-boolean v3, p0, Lcom/discord/utilities/intent/RouteHandlers$voiceConnect$1;->$isServicePermissionDeniedRedirect:Z
|
|
|
|
invoke-virtual {p1, v0, v1, v2, v3}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;->launch(Landroid/content/Context;JZ)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|