2019-11-15 02:21:15 +00:00
|
|
|
.class public final Lcom/discord/widgets/settings/billing/SettingsBillingViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "SettingsBillingViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/settings/billing/SettingsBillingViewModel;
|
|
|
|
.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
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
2020-01-28 00:59:01 +00:00
|
|
|
.locals 5
|
2019-11-15 02:21:15 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/settings/billing/SettingsBillingViewModel;
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getPaymentSources()Lcom/discord/stores/StorePaymentSources;
|
|
|
|
|
|
|
|
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;->getSubscriptions()Lcom/discord/stores/StoreSubscriptions;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
sget-object v2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreStream$Companion;->getPaymentSources()Lcom/discord/stores/StorePaymentSources;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
move-result-object v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StorePaymentSources;->getPaymentSources()Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
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;->getSubscriptions()Lcom/discord/stores/StoreSubscriptions;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreSubscriptions;->getSubscriptions()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/widgets/settings/billing/SettingsBillingViewModel$Factory$create$1;->INSTANCE:Lcom/discord/widgets/settings/billing/SettingsBillingViewModel$Factory$create$1;
|
|
|
|
|
|
|
|
invoke-static {v2, v3, v4}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
const-string v3, "Observable\n \u2026 )\n }"
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {v2, v3}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
invoke-direct {p1, v0, v1, v2}, Lcom/discord/widgets/settings/billing/SettingsBillingViewModel;-><init>(Lcom/discord/stores/StorePaymentSources;Lcom/discord/stores/StoreSubscriptions;Lrx/Observable;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
return-object p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-11-15 02:21:15 +00:00
|
|
|
.end method
|