2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CallFeedbackSheetViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final config:Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;)V
|
2020-09-08 08:16:32 +00:00
|
|
|
.locals 0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Factory;->config:Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;
|
|
|
|
|
|
|
|
return-void
|
2020-09-08 08:16:32 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "config"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Factory;->config:Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {p1, v0, v1}, Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel;-><init>(Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;Lcom/discord/stores/StoreAnalytics;)V
|
|
|
|
|
|
|
|
return-object p1
|
2020-09-08 08:16:32 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getConfig()Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Factory;->config:Lcom/discord/widgets/voice/feedback/CallFeedbackSheetViewModel$Config;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|