mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
157 lines
5.5 KiB
Smali
157 lines
5.5 KiB
Smali
.class public final Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;
|
|
.super Ljava/lang/Object;
|
|
.source "InitializerViewModelFactory.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Landroidx/lifecycle/viewmodel/ViewModelFactoryDsl;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nInitializerViewModelFactory.kt\nKotlin\n*S Kotlin\n*F\n+ 1 InitializerViewModelFactory.kt\nandroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,115:1\n37#2,2:116\n*S KotlinDebug\n*F\n+ 1 InitializerViewModelFactory.kt\nandroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder\n*L\n54#1:116,2\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0008\u0007\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J7\u0010\u0006\u001a\u00020\u0007\"\u0008\u0008\u0000\u0010\u0008*\u00020\t2\u000c\u0010\n\u001a\u0008\u0012\u0004\u0012\u0002H\u00080\u000b2\u0017\u0010\u000c\u001a\u0013\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u0002H\u00080\r\u00a2\u0006\u0002\u0008\u000fJ\u0006\u0010\u0010\u001a\u00020\u0011R\u0018\u0010\u0003\u001a\u000c\u0012\u0008\u0012\u0006\u0012\u0002\u0008\u00030\u00050\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0012"
|
|
}
|
|
d2 = {
|
|
"Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;",
|
|
"",
|
|
"()V",
|
|
"initializers",
|
|
"",
|
|
"Landroidx/lifecycle/viewmodel/ViewModelInitializer;",
|
|
"addInitializer",
|
|
"",
|
|
"T",
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
"clazz",
|
|
"Lkotlin/reflect/KClass;",
|
|
"initializer",
|
|
"Lkotlin/Function1;",
|
|
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
|
"Lkotlin/ExtensionFunctionType;",
|
|
"build",
|
|
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
|
"lifecycle-viewmodel_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final initializers:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroidx/lifecycle/viewmodel/ViewModelInitializer<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 38
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
iput-object v0, p0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;->initializers:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final addInitializer(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
">(",
|
|
"Lkotlin/reflect/KClass<",
|
|
"TT;>;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
|
"+TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "clazz"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "initializer"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object p0, p0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;->initializers:Ljava/util/List;
|
|
|
|
.line 47
|
|
new-instance v0, Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/JvmClassMappingKt;->getJavaClass(Lkotlin/reflect/KClass;)Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1, p2}, Landroidx/lifecycle/viewmodel/ViewModelInitializer;-><init>(Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final build()Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
.locals 2
|
|
|
|
.line 54
|
|
new-instance v0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactory;
|
|
|
|
iget-object p0, p0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;->initializers:Ljava/util/List;
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
.line 117
|
|
invoke-interface {p0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 54
|
|
check-cast p0, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
array-length v1, p0
|
|
|
|
invoke-static {p0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/lifecycle/viewmodel/InitializerViewModelFactory;-><init>([Landroidx/lifecycle/viewmodel/ViewModelInitializer;)V
|
|
|
|
check-cast v0, Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
return-object v0
|
|
.end method
|