86 lines
2.8 KiB
Smali
86 lines
2.8 KiB
Smali
.class public final Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel$Factory;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetChannelFollowSheetViewModel.kt"
|
|
|
|
# interfaces
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Factory"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final sourceChannelId:J
|
|
|
|
.field public final sourceGuildId:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JJ)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel$Factory;->sourceGuildId:J
|
|
|
|
iput-wide p3, p0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel$Factory;->sourceChannelId:J
|
|
|
|
return-void
|
|
.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
|
|
|
|
const-string v0, "modelClass"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel;
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel$Factory;->sourceGuildId:J
|
|
|
|
iget-wide v4, p0, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel$Factory;->sourceChannelId:J
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
move-result-object v6
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getChannels()Lcom/discord/stores/StoreChannels;
|
|
|
|
move-result-object v7
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getPermissions()Lcom/discord/stores/StorePermissions;
|
|
|
|
move-result-object v8
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/discord/widgets/announcements/WidgetChannelFollowSheetViewModel;-><init>(JJLcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StorePermissions;)V
|
|
|
|
return-object p1
|
|
.end method
|