apkfuckery/com.discord/smali/com/discord/stores/StoreMediaNotification$init...

149 lines
5.6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/stores/StoreMediaNotification$init$4;
2019-12-21 01:41:59 +00:00
.super Lt/u/b/k;
2019-07-24 11:27:29 +00:00
.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;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"Lt/u/b/k;",
2019-07-24 11:27:29 +00:00
"Lkotlin/jvm/functions/Function1<",
"Lcom/discord/stores/StoreMediaNotification$NotificationData;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic $context:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic $serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public 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
2019-12-21 01:41:59 +00:00
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.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-12-06 03:29:40 +00:00
sget-object p1, Lkotlin/Unit;->a: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
2020-01-14 05:14:30 +00:00
.locals 8
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
2020-01-10 03:40:06 +00:00
sget-object p1, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->INSTANCE:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;
2019-08-20 03:53:10 +00:00
2020-01-10 03:40:06 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
invoke-virtual {p1, v0}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->stopForegroundAndUnbind(Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;)V
2019-08-20 03:53:10 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-07-29 20:14:17 +00:00
:cond_0
2020-01-10 03:40:06 +00:00
sget-object v1, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->INSTANCE:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
iget-object v2, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$serviceBinding:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getStateString()I
2020-01-10 03:40:06 +00:00
move-result v3
invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v3
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
const-string v0, "context.getString(it.stateString)"
2019-07-24 11:27:29 +00:00
2020-01-10 03:40:06 +00:00
invoke-static {v3, v0}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getChannelName()Ljava/lang/String;
2020-01-10 03:40:06 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->isSelfMuted()Z
2020-01-10 03:40:06 +00:00
move-result v5
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->isSelfDeafened()Z
2020-01-10 03:40:06 +00:00
move-result v6
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getProximityLockEnabled()Z
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
move-result v7
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
invoke-virtual/range {v1 .. v7}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Actions;->startForegroundAndBind(Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;Ljava/lang/String;Ljava/lang/String;ZZZ)V
2019-07-24 11:27:29 +00:00
2020-01-14 05:14:30 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->getRtcConnectionState()Lcom/discord/rtcconnection/RtcConnection$State;
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
move-result-object p1
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
sget-object v0, Lcom/discord/rtcconnection/RtcConnection$State$f;->a:Lcom/discord/rtcconnection/RtcConnection$State$f;
2019-07-31 00:08:31 +00:00
2020-01-14 05:14:30 +00:00
invoke-static {p1, v0}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2020-01-14 05:14:30 +00:00
move-result p1
2020-01-10 03:40:06 +00:00
2020-01-14 05:14:30 +00:00
if-eqz p1, :cond_1
2020-01-10 03:40:06 +00:00
2020-01-14 05:14:30 +00:00
sget-object p1, Lcom/discord/utilities/voice/DiscordOverlayService;->Companion:Lcom/discord/utilities/voice/DiscordOverlayService$Companion;
2020-01-10 03:40:06 +00:00
2020-01-14 05:14:30 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaNotification$init$4;->$context:Landroid/content/Context;
2020-01-10 03:40:06 +00:00
2020-01-14 05:14:30 +00:00
invoke-virtual {p1, v0}, Lcom/discord/utilities/voice/DiscordOverlayService$Companion;->launchOverlayForVoice(Landroid/content/Context;)V
2020-01-10 03:40:06 +00:00
2020-01-14 05:14:30 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method