2019-07-24 11:27:29 +00:00
|
|
|
.class final Lcom/discord/stores/StoreMediaNotification$init$4;
|
|
|
|
.super Lkotlin/jvm/internal/l;
|
|
|
|
.source "StoreMediaNotification.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreMediaNotification;->init(Landroid/content/Context;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/jvm/internal/l;",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/stores/StoreMediaNotification$NotificationData;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic $context:Landroid/content/Context;
|
|
|
|
|
|
|
|
.field final synthetic $serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-08-20 03:53:10 +00:00
|
|
|
.method constructor <init>(Landroid/content/Context;Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/l;-><init>(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreMediaNotification$init$4;->invoke(Lcom/discord/stores/StoreMediaNotification$NotificationData;)V
|
|
|
|
|
2019-08-22 06:13:42 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->bjF:Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Lcom/discord/stores/StoreMediaNotification$NotificationData;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
.locals 5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getRtcConnectionState()Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v0, v0, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
sget-object p1, Lcom/discord/utilities/voice/DiscordOverlayService;->Companion:Lcom/discord/utilities/voice/DiscordOverlayService$Companion;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/voice/DiscordOverlayService$Companion;->requestOverlayClose(Landroid/content/Context;)V
|
|
|
|
|
2019-08-20 03:53:10 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->stopForegroundAndUnbind(Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;)V
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
:cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getStateString()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getChannelName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->isSelfMuted()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->isSelfDeafened()Z
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2, v3, v4}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->startForegroundAndBind(Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;Ljava/lang/String;Ljava/lang/String;ZZ)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getRtcConnectionState()Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-08-22 06:13:42 +00:00
|
|
|
sget-object v0, Lcom/discord/rtcconnection/RtcConnection$State$f;->yh:Lcom/discord/rtcconnection/RtcConnection$State$f;
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
move-result p1
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/utilities/voice/DiscordOverlayService;->Companion:Lcom/discord/utilities/voice/DiscordOverlayService$Companion;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/voice/DiscordOverlayService$Companion;->launchOverlayForVoice(Landroid/content/Context;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|