CommunityRelatedSettingVMFactory.smali
.class public final Lcom/imo/android/imoim/communitymodule/profile/CommunityRelatedSettingVMFactory;
.super Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;
.source "SourceFile"
# instance fields
.field private a:Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;
# direct methods
.method public constructor <init>(Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;)V
.registers 2
.line 10
invoke-direct {p0}, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/communitymodule/profile/CommunityRelatedSettingVMFactory;->a:Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
.registers 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}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 13
new-instance p1, Lcom/imo/android/imoim/communitymodule/profile/CommunityRelatedSettingViewModel;
iget-object v0, p0, Lcom/imo/android/imoim/communitymodule/profile/CommunityRelatedSettingVMFactory;->a:Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;
invoke-direct {p1, v0}, Lcom/imo/android/imoim/communitymodule/profile/CommunityRelatedSettingViewModel;-><init>(Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;)V
check-cast p1, Landroidx/lifecycle/ViewModel;
return-object p1
.end method