mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
564 lines
20 KiB
Smali
564 lines
20 KiB
Smali
|
.class public final Landroidx/lifecycle/SavedStateViewModelFactory;
|
||
|
.super Landroidx/lifecycle/ViewModelProvider$OnRequeryFactory;
|
||
|
.source "SavedStateViewModelFactory.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
d1 = {
|
||
|
"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0007\u0008\u0016\u00a2\u0006\u0002\u0010\u0003B\u0019\u0008\u0016\u0012\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0002\u0010\u0008B#\u0008\u0017\u0012\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0008\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0002\u0010\u000bJ%\u0010\u0011\u001a\u0002H\u0012\"\u0008\u0008\u0000\u0010\u0012*\u00020\u00132\u000c\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u0002H\u00120\u0015H\u0016\u00a2\u0006\u0002\u0010\u0016J-\u0010\u0011\u001a\u0002H\u0012\"\u0008\u0008\u0000\u0010\u0012*\u00020\u00132\u000c\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u0002H\u00120\u00152\u0006\u0010\u0017\u001a\u00020\u0018H\u0016\u00a2\u0006\u0002\u0010\u0019J+\u0010\u0011\u001a\u0002H\u0012\"\u0008\u0008\u0000\u0010\u0012*\u00020\u00132\u0006\u0010\u001a\u001a\u00020\u001b2\u000c\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u0002H\u00120\u0015\u00a2\u0006\u0002\u0010\u001cJ\u0010\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020\u0013H\u0017R\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\t\u001a\u0004\u0018\u00010\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000c\u001a\u00020\u0002X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\r\u001a\u0004\u0018\u00010\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006 "
|
||
|
}
|
||
|
d2 = {
|
||
|
"Landroidx/lifecycle/SavedStateViewModelFactory;",
|
||
|
"Landroidx/lifecycle/ViewModelProvider$OnRequeryFactory;",
|
||
|
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
||
|
"()V",
|
||
|
"application",
|
||
|
"Landroid/app/Application;",
|
||
|
"owner",
|
||
|
"Landroidx/savedstate/SavedStateRegistryOwner;",
|
||
|
"(Landroid/app/Application;Landroidx/savedstate/SavedStateRegistryOwner;)V",
|
||
|
"defaultArgs",
|
||
|
"Landroid/os/Bundle;",
|
||
|
"(Landroid/app/Application;Landroidx/savedstate/SavedStateRegistryOwner;Landroid/os/Bundle;)V",
|
||
|
"factory",
|
||
|
"lifecycle",
|
||
|
"Landroidx/lifecycle/Lifecycle;",
|
||
|
"savedStateRegistry",
|
||
|
"Landroidx/savedstate/SavedStateRegistry;",
|
||
|
"create",
|
||
|
"T",
|
||
|
"Landroidx/lifecycle/ViewModel;",
|
||
|
"modelClass",
|
||
|
"Ljava/lang/Class;",
|
||
|
"(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;",
|
||
|
"extras",
|
||
|
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
||
|
"(Ljava/lang/Class;Landroidx/lifecycle/viewmodel/CreationExtras;)Landroidx/lifecycle/ViewModel;",
|
||
|
"key",
|
||
|
"",
|
||
|
"(Ljava/lang/String;Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;",
|
||
|
"onRequery",
|
||
|
"",
|
||
|
"viewModel",
|
||
|
"lifecycle-viewmodel-savedstate_release"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x8,
|
||
|
0x0
|
||
|
}
|
||
|
xi = 0x30
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private application:Landroid/app/Application;
|
||
|
|
||
|
.field private defaultArgs:Landroid/os/Bundle;
|
||
|
|
||
|
.field private final factory:Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
.field private lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
.field private savedStateRegistry:Landroidx/savedstate/SavedStateRegistry;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 58
|
||
|
invoke-direct {p0}, Landroidx/lifecycle/ViewModelProvider$OnRequeryFactory;-><init>()V
|
||
|
|
||
|
.line 59
|
||
|
new-instance v0, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;-><init>()V
|
||
|
|
||
|
check-cast v0, Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
iput-object v0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->factory:Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/app/Application;Landroidx/savedstate/SavedStateRegistryOwner;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "owner"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 76
|
||
|
invoke-direct {p0, p1, p2, v0}, Landroidx/lifecycle/SavedStateViewModelFactory;-><init>(Landroid/app/Application;Landroidx/savedstate/SavedStateRegistryOwner;Landroid/os/Bundle;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/app/Application;Landroidx/savedstate/SavedStateRegistryOwner;Landroid/os/Bundle;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "owner"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 96
|
||
|
invoke-direct {p0}, Landroidx/lifecycle/ViewModelProvider$OnRequeryFactory;-><init>()V
|
||
|
|
||
|
.line 97
|
||
|
invoke-interface {p2}, Landroidx/savedstate/SavedStateRegistryOwner;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->savedStateRegistry:Landroidx/savedstate/SavedStateRegistry;
|
||
|
|
||
|
.line 98
|
||
|
invoke-interface {p2}, Landroidx/savedstate/SavedStateRegistryOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
iput-object p2, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
iput-object p3, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->defaultArgs:Landroid/os/Bundle;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->application:Landroid/app/Application;
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
.line 101
|
||
|
sget-object p2, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;->Companion:Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory$Companion;
|
||
|
|
||
|
invoke-virtual {p2, p1}, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory$Companion;->getInstance(Landroid/app/Application;)Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 102
|
||
|
:cond_0
|
||
|
new-instance p1, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;
|
||
|
|
||
|
invoke-direct {p1}, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;-><init>()V
|
||
|
|
||
|
check-cast p1, Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
:goto_0
|
||
|
iput-object p1, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->factory:Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
.locals 1
|
||
|
.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/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 199
|
||
|
invoke-virtual {p1}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 201
|
||
|
invoke-virtual {p0, v0, p1}, Landroidx/lifecycle/SavedStateViewModelFactory;->create(Ljava/lang/String;Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 200
|
||
|
:cond_0
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p1, "Local and anonymous classes can not be ViewModels"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public create(Ljava/lang/Class;Landroidx/lifecycle/viewmodel/CreationExtras;)Landroidx/lifecycle/ViewModel;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Landroidx/lifecycle/ViewModel;",
|
||
|
">(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"TT;>;",
|
||
|
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
||
|
")TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "modelClass"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "extras"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 112
|
||
|
sget-object v0, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;->VIEW_MODEL_KEY:Landroidx/lifecycle/viewmodel/CreationExtras$Key;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/lifecycle/viewmodel/CreationExtras;->get(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/String;
|
||
|
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
.line 117
|
||
|
sget-object v1, Landroidx/lifecycle/SavedStateHandleSupport;->SAVED_STATE_REGISTRY_OWNER_KEY:Landroidx/lifecycle/viewmodel/CreationExtras$Key;
|
||
|
|
||
|
invoke-virtual {p2, v1}, Landroidx/lifecycle/viewmodel/CreationExtras;->get(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
.line 118
|
||
|
sget-object v1, Landroidx/lifecycle/SavedStateHandleSupport;->VIEW_MODEL_STORE_OWNER_KEY:Landroidx/lifecycle/viewmodel/CreationExtras$Key;
|
||
|
|
||
|
invoke-virtual {p2, v1}, Landroidx/lifecycle/viewmodel/CreationExtras;->get(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
.line 119
|
||
|
sget-object v0, Landroidx/lifecycle/ViewModelProvider$AndroidViewModelFactory;->APPLICATION_KEY:Landroidx/lifecycle/viewmodel/CreationExtras$Key;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/lifecycle/viewmodel/CreationExtras;->get(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/app/Application;
|
||
|
|
||
|
const-class v1, Landroidx/lifecycle/AndroidViewModel;
|
||
|
|
||
|
.line 120
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 122
|
||
|
invoke-static {}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->access$getANDROID_VIEWMODEL_SIGNATURE$p()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p1, v2}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->findMatchingConstructor(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/reflect/Constructor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 124
|
||
|
:cond_0
|
||
|
invoke-static {}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->access$getVIEWMODEL_SIGNATURE$p()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p1, v2}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->findMatchingConstructor(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/reflect/Constructor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:goto_0
|
||
|
if-nez v2, :cond_1
|
||
|
|
||
|
iget-object p0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->factory:Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
.line 128
|
||
|
invoke-interface {p0, p1, p2}, Landroidx/lifecycle/ViewModelProvider$Factory;->create(Ljava/lang/Class;Landroidx/lifecycle/viewmodel/CreationExtras;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_1
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 131
|
||
|
invoke-static {p2}, Landroidx/lifecycle/SavedStateHandleSupport;->createSavedStateHandle(Landroidx/lifecycle/viewmodel/CreationExtras;)Landroidx/lifecycle/SavedStateHandle;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
filled-new-array {v0, p0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p1, v2, p0}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->newInstance(Ljava/lang/Class;Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 133
|
||
|
:cond_2
|
||
|
invoke-static {p2}, Landroidx/lifecycle/SavedStateHandleSupport;->createSavedStateHandle(Landroidx/lifecycle/viewmodel/CreationExtras;)Landroidx/lifecycle/SavedStateHandle;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
filled-new-array {p0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p1, v2, p0}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->newInstance(Ljava/lang/Class;Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
iget-object p2, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
if-eqz p2, :cond_4
|
||
|
|
||
|
.line 138
|
||
|
invoke-virtual {p0, v0, p1}, Landroidx/lifecycle/SavedStateViewModelFactory;->create(Ljava/lang/String;Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_1
|
||
|
return-object p0
|
||
|
|
||
|
.line 140
|
||
|
:cond_4
|
||
|
new-instance p0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string p1, "SAVED_STATE_REGISTRY_OWNER_KEY andVIEW_MODEL_STORE_OWNER_KEY must be provided in the creation extras tosuccessfully create a ViewModel."
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
.line 113
|
||
|
:cond_5
|
||
|
new-instance p0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string p1, "VIEW_MODEL_KEY must always be provided by ViewModelProvider"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final create(Ljava/lang/String;Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Landroidx/lifecycle/ViewModel;",
|
||
|
">(",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/Class<",
|
||
|
"TT;>;)TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "key"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "modelClass"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
.line 159
|
||
|
const-class v1, Landroidx/lifecycle/AndroidViewModel;
|
||
|
|
||
|
.line 164
|
||
|
invoke-virtual {v1, p2}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
iget-object v2, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->application:Landroid/app/Application;
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
.line 166
|
||
|
invoke-static {}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->access$getANDROID_VIEWMODEL_SIGNATURE$p()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p2, v2}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->findMatchingConstructor(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/reflect/Constructor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 168
|
||
|
:cond_0
|
||
|
invoke-static {}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->access$getVIEWMODEL_SIGNATURE$p()Ljava/util/List;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {p2, v2}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->findMatchingConstructor(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/reflect/Constructor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:goto_0
|
||
|
if-nez v2, :cond_2
|
||
|
|
||
|
iget-object p1, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->application:Landroid/app/Application;
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->factory:Landroidx/lifecycle/ViewModelProvider$Factory;
|
||
|
|
||
|
.line 174
|
||
|
invoke-interface {p0, p2}, Landroidx/lifecycle/ViewModelProvider$Factory;->create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 175
|
||
|
:cond_1
|
||
|
sget-object p0, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;->Companion:Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory$Companion;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory$Companion;->getInstance()Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0, p2}, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;->create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_1
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v3, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->savedStateRegistry:Landroidx/savedstate/SavedStateRegistry;
|
||
|
|
||
|
.line 177
|
||
|
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object v4, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->defaultArgs:Landroid/os/Bundle;
|
||
|
|
||
|
.line 176
|
||
|
invoke-static {v3, v0, p1, v4}, Landroidx/lifecycle/LegacySavedStateHandleController;->create(Landroidx/savedstate/SavedStateRegistry;Landroidx/lifecycle/Lifecycle;Ljava/lang/String;Landroid/os/Bundle;)Landroidx/lifecycle/SavedStateHandleController;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
iget-object p0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->application:Landroid/app/Application;
|
||
|
|
||
|
if-eqz p0, :cond_3
|
||
|
|
||
|
.line 180
|
||
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/lifecycle/SavedStateHandleController;->getHandle()Landroidx/lifecycle/SavedStateHandle;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
filled-new-array {p0, v0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p2, v2, p0}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->newInstance(Ljava/lang/Class;Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
.line 182
|
||
|
:cond_3
|
||
|
invoke-virtual {p1}, Landroidx/lifecycle/SavedStateHandleController;->getHandle()Landroidx/lifecycle/SavedStateHandle;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
filled-new-array {p0}, [Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p2, v2, p0}, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->newInstance(Ljava/lang/Class;Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Landroidx/lifecycle/ViewModel;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_2
|
||
|
const-string p2, "androidx.lifecycle.savedstate.vm.tag"
|
||
|
|
||
|
.line 184
|
||
|
invoke-virtual {p0, p2, p1}, Landroidx/lifecycle/ViewModel;->setTagIfAbsent(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 160
|
||
|
:cond_4
|
||
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
const-string p1, "SavedStateViewModelFactory constructed with empty constructor supports only calls to create(modelClass: Class<T>, extras: CreationExtras)."
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public onRequery(Landroidx/lifecycle/ViewModel;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "viewModel"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->savedStateRegistry:Landroidx/savedstate/SavedStateRegistry;
|
||
|
|
||
|
.line 213
|
||
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object p0, p0, Landroidx/lifecycle/SavedStateViewModelFactory;->lifecycle:Landroidx/lifecycle/Lifecycle;
|
||
|
|
||
|
.line 214
|
||
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
.line 211
|
||
|
invoke-static {p1, v0, p0}, Landroidx/lifecycle/LegacySavedStateHandleController;->attachHandleIfNeeded(Landroidx/lifecycle/ViewModel;Landroidx/savedstate/SavedStateRegistry;Landroidx/lifecycle/Lifecycle;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|