162 lines
6.8 KiB
Smali
162 lines
6.8 KiB
Smali
.class public final Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetVoiceCallInline.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;->configureVoiceConnected(Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->this$0:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onClick(Landroid/view/View;)V
|
|
.locals 11
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "requireContext()"
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/streams/StreamContext;->isCurrentUserSpectating()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object p1, Lcom/discord/widgets/spectate/WidgetSpectate;->Companion:Lcom/discord/widgets/spectate/WidgetSpectate$Companion;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->this$0:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getStreamContext()Lcom/discord/utilities/streams/StreamContext;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/streams/StreamContext;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->encodeStreamKey()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v1, v0}, Lcom/discord/widgets/spectate/WidgetSpectate$Companion;->launch(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getSelectedVoiceChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
sget-object p1, Lcom/discord/widgets/voice/call/WidgetPrivateCall;->Companion:Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getSelectedVoiceChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->this$0:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;
|
|
|
|
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v1, v2, v3}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;->launch(JLandroid/content/Context;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object v4, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->this$0:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline;
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$configureVoiceConnected$2;->$data:Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/call/WidgetVoiceCallInline$Model$VoiceConnected;->getSelectedVoiceChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v6
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x4
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static/range {v4 .. v10}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;->launch$default(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;Landroid/content/Context;JZILjava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|