apkfuckery/com.discord/smali/androidx/fragment/app/FragmentViewModelLazyKt.smali

235 lines
6 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Landroidx/fragment/app/FragmentViewModelLazyKt;
.super Ljava/lang/Object;
.source "FragmentViewModelLazy.kt"
# direct methods
2020-09-08 08:16:32 +00:00
.method public static final activityViewModels(Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<VM:",
"Landroidx/lifecycle/ViewModel;",
">(",
"Landroidx/fragment/app/Fragment;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Landroidx/lifecycle/ViewModelProvider$Factory;",
">;)",
"Lkotlin/Lazy<",
"TVM;>;"
}
.end annotation
2020-09-08 08:16:32 +00:00
const/4 p1, 0x0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p0, :cond_0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {}, Lk0/n/c/h;->reifiedOperationMarker()V
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
throw p1
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
:cond_0
const-string p0, "$this$activityViewModels"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw p1
2020-07-08 16:44:49 +00:00
.end method
2020-09-08 08:16:32 +00:00
.method public static activityViewModels$default(Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 0
and-int/lit8 p1, p2, 0x1
2020-09-08 08:16:32 +00:00
const/4 p1, 0x0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p0, :cond_0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {}, Lk0/n/c/h;->reifiedOperationMarker()V
throw p1
:cond_0
const-string p0, "$this$activityViewModels"
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
throw p1
2020-07-08 16:44:49 +00:00
.end method
2020-09-08 08:16:32 +00:00
.method public static final createViewModelLazy(Landroidx/fragment/app/Fragment;Lk0/r/b;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<VM:",
"Landroidx/lifecycle/ViewModel;",
">(",
"Landroidx/fragment/app/Fragment;",
2020-09-08 08:16:32 +00:00
"Lk0/r/b<",
2020-07-08 16:44:49 +00:00
"TVM;>;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Landroidx/lifecycle/ViewModelStore;",
">;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Landroidx/lifecycle/ViewModelProvider$Factory;",
">;)",
"Lkotlin/Lazy<",
"TVM;>;"
}
.end annotation
2020-09-08 08:16:32 +00:00
const/4 v0, 0x0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p0, :cond_3
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p1, :cond_2
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p2, :cond_1
2020-07-08 16:44:49 +00:00
if-eqz p3, :cond_0
goto :goto_0
:cond_0
new-instance p3, Landroidx/fragment/app/FragmentViewModelLazyKt$createViewModelLazy$factoryPromise$1;
invoke-direct {p3, p0}, Landroidx/fragment/app/FragmentViewModelLazyKt$createViewModelLazy$factoryPromise$1;-><init>(Landroidx/fragment/app/Fragment;)V
:goto_0
new-instance p0, Landroidx/lifecycle/ViewModelLazy;
2020-09-08 08:16:32 +00:00
invoke-direct {p0, p1, p2, p3}, Landroidx/lifecycle/ViewModelLazy;-><init>(Lk0/r/b;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
2020-07-08 16:44:49 +00:00
return-object p0
2020-09-08 08:16:32 +00:00
:cond_1
const-string p0, "storeProducer"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_2
const-string p0, "viewModelClass"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_3
const-string p0, "$this$createViewModelLazy"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
2020-07-08 16:44:49 +00:00
.end method
2020-09-08 08:16:32 +00:00
.method public static synthetic createViewModelLazy$default(Landroidx/fragment/app/Fragment;Lk0/r/b;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 0
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_0
const/4 p3, 0x0
:cond_0
2020-09-08 08:16:32 +00:00
invoke-static {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentViewModelLazyKt;->createViewModelLazy(Landroidx/fragment/app/Fragment;Lk0/r/b;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
move-result-object p0
return-object p0
.end method
2020-09-08 08:16:32 +00:00
.method public static final viewModels(Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<VM:",
"Landroidx/lifecycle/ViewModel;",
">(",
"Landroidx/fragment/app/Fragment;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Landroidx/lifecycle/ViewModelStoreOwner;",
">;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Landroidx/lifecycle/ViewModelProvider$Factory;",
">;)",
"Lkotlin/Lazy<",
"TVM;>;"
}
.end annotation
2020-09-08 08:16:32 +00:00
const/4 p2, 0x0
if-eqz p0, :cond_1
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p1, :cond_0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {}, Lk0/n/c/h;->reifiedOperationMarker()V
throw p2
:cond_0
2020-07-08 16:44:49 +00:00
const-string p0, "ownerProducer"
2020-09-08 08:16:32 +00:00
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
throw p2
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
:cond_1
const-string p0, "$this$viewModels"
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw p2
2020-07-08 16:44:49 +00:00
.end method
2020-09-08 08:16:32 +00:00
.method public static viewModels$default(Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Lkotlin/Lazy;
2020-07-08 16:44:49 +00:00
.locals 0
and-int/lit8 p2, p3, 0x1
if-eqz p2, :cond_0
new-instance p1, Landroidx/fragment/app/FragmentViewModelLazyKt$viewModels$1;
invoke-direct {p1, p0}, Landroidx/fragment/app/FragmentViewModelLazyKt$viewModels$1;-><init>(Landroidx/fragment/app/Fragment;)V
:cond_0
and-int/lit8 p2, p3, 0x2
2020-09-08 08:16:32 +00:00
const/4 p2, 0x0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p0, :cond_1
2020-07-08 16:44:49 +00:00
const-string p0, "ownerProducer"
2020-09-08 08:16:32 +00:00
invoke-static {p1, p0}, Lk0/n/c/h;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {}, Lk0/n/c/h;->reifiedOperationMarker()V
throw p2
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
:cond_1
const-string p0, "$this$viewModels"
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
throw p2
2020-07-08 16:44:49 +00:00
.end method