apkfuckery/com.discord/smali_classes2/WidgetRemoteAuthViewModel$c.smali
2020-03-10 00:19:51 +01:00

84 lines
1.9 KiB
Smali

.class public final LWidgetRemoteAuthViewModel$c;
.super Ljava/lang/Object;
.source "WidgetRemoteAuthViewModel.kt"
# interfaces
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = LWidgetRemoteAuthViewModel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
# instance fields
.field public final a:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
if-eqz p1, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, LWidgetRemoteAuthViewModel$c;->a:Ljava/lang/String;
return-void
:cond_0
const-string p1, "fingerprint"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.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
if-eqz p1, :cond_0
new-instance p1, LWidgetRemoteAuthViewModel;
iget-object v0, p0, LWidgetRemoteAuthViewModel$c;->a:Ljava/lang/String;
sget-object v1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
move-result-object v1
invoke-direct {p1, v0, v1}, LWidgetRemoteAuthViewModel;-><init>(Ljava/lang/String;Lcom/discord/utilities/rest/RestAPI;)V
return-object p1
:cond_0
const-string p1, "modelClass"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method