2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetVoiceBottomSheetViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final channelId:J
|
|
|
|
|
|
|
|
.field public final experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
.field public final forwardToFullscreenIfVideoActivated:Z
|
|
|
|
|
|
|
|
.field public final mediaEngineStore:Lcom/discord/stores/StoreMediaEngine;
|
|
|
|
|
|
|
|
.field public final mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
.field public final selectedVoiceChannelStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
|
|
.field public final userSettingsStore:Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(JZLcom/discord/stores/StoreExperiments;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreMediaEngine;Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
|
|
|
|
if-eqz p7, :cond_1
|
|
|
|
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->channelId:J
|
|
|
|
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->forwardToFullscreenIfVideoActivated:Z
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->selectedVoiceChannelStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->mediaEngineStore:Lcom/discord/stores/StoreMediaEngine;
|
|
|
|
|
|
|
|
iput-object p8, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->userSettingsStore:Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "userSettingsStore"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "mediaEngineStore"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "selectedVoiceChannelStore"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "mediaSettingsStore"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "experimentStore"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(JZLcom/discord/stores/StoreExperiments;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreMediaEngine;Lcom/discord/stores/StoreUserSettings;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
and-int/lit8 v0, p9, 0x4
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v5, p4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
and-int/lit8 v0, p9, 0x8
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getMediaSettings()Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v6, v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object v6, p5
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
and-int/lit8 v0, p9, 0x10
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getVoiceChannelSelected()Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v7, v0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object/from16 v7, p6
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
and-int/lit8 v0, p9, 0x20
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getMediaEngine()Lcom/discord/stores/StoreMediaEngine;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v8, v0
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object/from16 v8, p7
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
and-int/lit8 v0, p9, 0x40
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v9, v0
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
move-wide v2, p1
|
|
|
|
|
|
|
|
move v4, p3
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v9}, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;-><init>(JZLcom/discord/stores/StoreExperiments;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreMediaEngine;Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final observeStoreState()Lrx/Observable;
|
|
|
|
.locals 5
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/model/CallModel;->Companion:Lcom/discord/widgets/voice/model/CallModel$Companion;
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->channelId:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/widgets/voice/model/CallModel$Companion;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->experimentStore:Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
|
|
const-string v2, "2020-04_noise_cancellation_android"
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v4, v3}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory$observeStoreState$1;->INSTANCE:Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory$observeStoreState$1;
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->D(Lr0/k/b;)Lrx/Observable;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings;->getNoiseProcessing()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory$observeStoreState$2;->INSTANCE:Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory$observeStoreState$2;
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lrx/Observable;->i(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable.combineLatest\u2026Invalid\n }\n }"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {v0, v1}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel;
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->channelId:J
|
|
|
|
|
|
|
|
iget-boolean v3, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->forwardToFullscreenIfVideoActivated:Z
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->observeStoreState()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v5, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->selectedVoiceChannelStore:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
|
|
iget-object v6, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
iget-object v7, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->mediaEngineStore:Lcom/discord/stores/StoreMediaEngine;
|
|
|
|
|
|
|
|
iget-object v8, p0, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel$Factory;->userSettingsStore:Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/discord/widgets/voice/sheet/WidgetVoiceBottomSheetViewModel;-><init>(JZLrx/Observable;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreMediaEngine;Lcom/discord/stores/StoreUserSettings;)V
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|