279 lines
9.6 KiB
Smali
279 lines
9.6 KiB
Smali
.class public final Lcom/discord/stores/StoreMediaNotification;
|
|
.super Lcom/discord/stores/Store;
|
|
.source "StoreMediaNotification.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/stores/StoreMediaNotification$NotificationData;,
|
|
Lcom/discord/stores/StoreMediaNotification$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lcom/discord/stores/StoreMediaNotification$Companion;
|
|
|
|
.field public static final NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
|
|
# instance fields
|
|
.field public final audioDevicesStore:Lcom/discord/stores/StoreAudioDevices;
|
|
|
|
.field public final mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
.field public final notificationDataObservable:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/stores/StoreMediaNotification$NotificationData;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final voiceChannelSelectedStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 8
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreMediaNotification$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/stores/StoreMediaNotification$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreMediaNotification;->Companion:Lcom/discord/stores/StoreMediaNotification$Companion;
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
new-instance v3, Lcom/discord/rtcconnection/RtcConnection$State$d;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v3, v1}, Lcom/discord/rtcconnection/RtcConnection$State$d;-><init>(Z)V
|
|
|
|
const-string v4, ""
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v2, v0
|
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/discord/stores/StoreMediaNotification$NotificationData;-><init>(Lcom/discord/rtcconnection/RtcConnection$State;Ljava/lang/String;ZZZ)V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreMediaNotification;->NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreAudioDevices;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreRtcConnection;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification;->audioDevicesStore:Lcom/discord/stores/StoreAudioDevices;
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreMediaNotification;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
iput-object p3, p0, Lcom/discord/stores/StoreMediaNotification;->voiceChannelSelectedStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreVoiceChannelSelected;->get()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p4}, Lcom/discord/stores/StoreRtcConnection;->getConnectionState()Lrx/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object p3, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$1;->INSTANCE:Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$1;
|
|
|
|
invoke-static {p1, p2, p3}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;-><init>(Lcom/discord/stores/StoreMediaNotification;)V
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->S(Lr0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Observable.combineLatest\u2026 }\n }"
|
|
|
|
invoke-static {p1, p2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification;->notificationDataObservable:Lrx/Observable;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "rtcConnectionStore"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "voiceChannelSelectedStore"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "mediaSettingsStore"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "audioDevicesStore"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getAudioDevicesStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreAudioDevices;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreMediaNotification;->audioDevicesStore:Lcom/discord/stores/StoreAudioDevices;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getMediaSettingsStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreMediaSettings;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreMediaNotification;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getNOTIFICATION_DATA_DISCONNECTED$cp()Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreMediaNotification;->NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getVoiceChannelSelectedStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/stores/StoreMediaNotification;->voiceChannelSelectedStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public init(Landroid/content/Context;)V
|
|
.locals 8
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/stores/Store;->init(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->Companion:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;
|
|
|
|
new-instance v1, Lcom/discord/stores/StoreMediaNotification$init$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/stores/StoreMediaNotification$init$1;-><init>(Lcom/discord/stores/StoreMediaNotification;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;->setOnDisconnect(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->Companion:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;
|
|
|
|
new-instance v1, Lcom/discord/stores/StoreMediaNotification$init$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/stores/StoreMediaNotification$init$2;-><init>(Lcom/discord/stores/StoreMediaNotification;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;->setOnToggleSelfDeafen(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
sget-object v0, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->Companion:Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;
|
|
|
|
new-instance v1, Lcom/discord/stores/StoreMediaNotification$init$3;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/stores/StoreMediaNotification$init$3;-><init>(Lcom/discord/stores/StoreMediaNotification;Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Companion;->setOnToggleSelfMute(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
new-instance v0, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;-><init>(Landroid/content/Context;)V
|
|
|
|
iget-object v7, p0, Lcom/discord/stores/StoreMediaNotification;->notificationDataObservable:Lrx/Observable;
|
|
|
|
new-instance v4, Lcom/discord/stores/StoreMediaNotification$init$4;
|
|
|
|
invoke-direct {v4, p1, v0}, Lcom/discord/stores/StoreMediaNotification$init$4;-><init>(Landroid/content/Context;Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;)V
|
|
|
|
const-class v2, Lcom/discord/stores/StoreMediaNotification;
|
|
|
|
const/16 p1, 0x3c
|
|
|
|
and-int/lit8 v0, p1, 0x4
|
|
|
|
and-int/lit8 v0, p1, 0x8
|
|
|
|
and-int/lit8 v0, p1, 0x10
|
|
|
|
and-int/lit8 p1, p1, 0x20
|
|
|
|
new-instance p1, Lf/a/b/b0;
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v1, v6
|
|
|
|
move-object v3, v6
|
|
|
|
move-object v5, v6
|
|
|
|
invoke-direct/range {v0 .. v6}, Lf/a/b/b0;-><init>(Landroid/content/Context;Ljava/lang/Class;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lrx/functions/Action1;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
invoke-virtual {v7, p1}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v6
|
|
.end method
|