139 lines
4.3 KiB
Smali
139 lines
4.3 KiB
Smali
|
.class public final Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel$Factory;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetUserSetCustomStatusViewModel.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "Factory"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final observeStoreState(Lcom/discord/stores/StoreUserSettings;Lcom/discord/stores/StoreEmoji;)Lrx/Observable;
|
||
|
.locals 6
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/discord/stores/StoreUserSettings;",
|
||
|
"Lcom/discord/stores/StoreEmoji;",
|
||
|
")",
|
||
|
"Lrx/Observable<",
|
||
|
"Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel$StoreState;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/stores/StoreUserSettings;->getCustomStatus()Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
sget-object v1, Lcom/discord/stores/StoreEmoji$EmojiContext$Global;->INSTANCE:Lcom/discord/stores/StoreEmoji$EmojiContext$Global;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x6
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v0, p2
|
||
|
|
||
|
invoke-static/range {v0 .. v5}, Lcom/discord/stores/StoreEmoji;->getEmojiSet$default(Lcom/discord/stores/StoreEmoji;Lcom/discord/stores/StoreEmoji$EmojiContext;ZZILjava/lang/Object;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
sget-object v0, Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel$Factory$observeStoreState$1;->INSTANCE:Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel$Factory$observeStoreState$1;
|
||
|
|
||
|
invoke-static {p1, p2, v0}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
invoke-virtual {p1, p2}, Lrx/Observable;->c(I)Lrx/Observable;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string p2, "Observable.combineLatest\u2026 )\n }.take(1)"
|
||
|
|
||
|
invoke-static {p1, p2}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
.locals 4
|
||
|
.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/user/WidgetUserSetCustomStatusViewModel;
|
||
|
|
||
|
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
|
||
|
|
||
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
sget-object v2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v2}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
||
|
|
||
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getEmojis()Lcom/discord/stores/StoreEmoji;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-direct {p0, v2, v3}, Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel$Factory;->observeStoreState(Lcom/discord/stores/StoreUserSettings;Lcom/discord/stores/StoreEmoji;)Lrx/Observable;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-direct {p1, v0, v1, v2}, Lcom/discord/widgets/user/WidgetUserSetCustomStatusViewModel;-><init>(Lcom/discord/stores/StoreUserSettings;Lcom/discord/utilities/time/Clock;Lrx/Observable;)V
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:cond_0
|
||
|
const-string p1, "modelClass"
|
||
|
|
||
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|