apkfuckery/com.discord/smali/f/a/a/w$c.smali
2020-10-19 23:59:54 +00:00

78 lines
2.1 KiB
Smali

.class public final Lf/a/a/w$c;
.super Ljava/lang/Object;
.source "WidgetUrgentMessageDialogViewModel.kt"
# interfaces
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf/a/a/w;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Landroidx/lifecycle/ViewModel;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
const-string v0, "modelClass"
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p1, Lf/a/a/w;
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
move-result-object v1
sget-object v2, Lf/a/a/x;->d:Lf/a/a/x;
invoke-virtual {v1, v2}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
move-result-object v1
const-string/jumbo v2, "storeUser.observeMe().ma\u2026oreState(user = meUser) }"
invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p1, v0, v1}, Lf/a/a/w;-><init>(Lcom/discord/utilities/rest/RestAPI;Lrx/Observable;)V
return-object p1
.end method