180 lines
5.3 KiB
Smali
180 lines
5.3 KiB
Smali
.class public final Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;
|
|
.super Ljava/lang/Object;
|
|
.source "StoreMediaNotification.kt"
|
|
|
|
# interfaces
|
|
.implements Lr0/k/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreMediaNotification;-><init>(Lcom/discord/stores/StoreAudioDevices;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreRtcConnection;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lr0/k/b<",
|
|
"TT;",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreMediaNotification;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMediaNotification;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;->this$0:Lcom/discord/stores/StoreMediaNotification;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Lkotlin/Pair;)Lrx/Observable;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
"+",
|
|
"Lcom/discord/rtcconnection/RtcConnection$State;",
|
|
">;)",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/stores/StoreMediaNotification$NotificationData;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
sget-object v1, Lcom/discord/rtcconnection/RtcConnection$State$h;->a:Lcom/discord/rtcconnection/RtcConnection$State$h;
|
|
|
|
invoke-static {p1, v1}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreMediaNotification;->access$getNOTIFICATION_DATA_DISCONNECTED$cp()Lcom/discord/stores/StoreMediaNotification$NotificationData;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lr0/l/e/j;
|
|
|
|
invoke-direct {v0, p1}, Lr0/l/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v1, ""
|
|
|
|
:goto_1
|
|
new-instance v2, Lr0/l/e/j;
|
|
|
|
invoke-direct {v2, v1}, Lr0/l/e/j;-><init>(Ljava/lang/Object;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;->this$0:Lcom/discord/stores/StoreMediaNotification;
|
|
|
|
invoke-static {v1}, Lcom/discord/stores/StoreMediaNotification;->access$getMediaSettingsStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings;->getVoiceConfig()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2;->this$0:Lcom/discord/stores/StoreMediaNotification;
|
|
|
|
invoke-static {v3}, Lcom/discord/stores/StoreMediaNotification;->access$getAudioDevicesStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreAudioDevices;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreAudioDevices;->getAudioDevicesState()Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lcom/discord/widgets/voice/model/CallModel;->Companion:Lcom/discord/widgets/voice/model/CallModel$Companion;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-wide/16 v5, -0x1
|
|
|
|
:goto_2
|
|
invoke-virtual {v4, v5, v6}, Lcom/discord/widgets/voice/model/CallModel$Companion;->get(J)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v4, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;
|
|
|
|
invoke-direct {v4, p1}, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$2$1;-><init>(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
|
|
invoke-static {v2, v1, v3, v0, v4}, Lrx/Observable;->h(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
return-object v0
|
|
.end method
|