2020-01-10 03:40:06 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "StoreMediaNotification.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Func4;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T1:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T2:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T3:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"T4:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/Func4<",
|
|
|
|
"TT1;TT2;TT3;TT4;TR;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-01-11 03:15:11 +00:00
|
|
|
.field public final synthetic $connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-01-11 03:15:11 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
2020-01-10 03:40:06 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-01-11 03:15:11 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;->$connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-01-23 01:26:29 +00:00
|
|
|
.method public final call(Ljava/lang/String;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;Lcom/discord/widgets/voice/model/CallModel;)Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
2020-01-30 10:23:52 +00:00
|
|
|
.locals 8
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-23 01:26:29 +00:00
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;->getSelectedOutputDevice()Lcom/discord/stores/StoreAudioDevices$OutputDevice;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-23 01:26:29 +00:00
|
|
|
move-result-object p3
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 v0, 0x0
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 v1, 0x1
|
2020-01-23 01:26:29 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
if-eqz p4, :cond_1
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
invoke-virtual {p4}, Lcom/discord/widgets/voice/model/CallModel;->isVideoCall()Z
|
2020-01-23 01:26:29 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
move-result p4
|
2020-01-23 01:26:29 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
if-eq p4, v1, :cond_0
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 p4, 0x0
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 p4, 0x1
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-01-30 10:23:52 +00:00
|
|
|
instance-of p3, p3, Lcom/discord/stores/StoreAudioDevices$OutputDevice$Earpiece;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
if-eqz p4, :cond_2
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
if-eqz p3, :cond_2
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 v7, 0x1
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2020-01-30 10:23:52 +00:00
|
|
|
const/4 v7, 0x0
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
new-instance p3, Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;->$connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-11 03:15:11 +00:00
|
|
|
const-string p4, "connectionState"
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3, p4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
const-string p4, "channelName"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, p4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
|
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
move-result v5
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
|
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
move-result v6
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
move-object v2, p3
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
move-object v4, p1
|
2020-01-10 03:40:06 +00:00
|
|
|
|
2020-01-30 10:23:52 +00:00
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/discord/stores/StoreMediaNotification$NotificationData;-><init>(Lcom/discord/rtcconnection/RtcConnection$State;Ljava/lang/String;ZZZ)V
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
return-object p3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
|
2020-01-23 01:26:29 +00:00
|
|
|
check-cast p3, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
check-cast p4, Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
|
2020-01-23 01:26:29 +00:00
|
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;->call(Ljava/lang/String;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;Lcom/discord/widgets/voice/model/CallModel;)Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
2020-01-10 03:40:06 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|