mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
60 lines
4.2 KiB
Java
60 lines
4.2 KiB
Java
package androidx.activity;
|
|
|
|
import androidx.lifecycle.ViewModel;
|
|
import androidx.lifecycle.ViewModelLazy;
|
|
import androidx.lifecycle.ViewModelProvider;
|
|
import androidx.lifecycle.viewmodel.CreationExtras;
|
|
import kotlin.Deprecated;
|
|
import kotlin.DeprecationLevel;
|
|
import kotlin.Lazy;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.Reflection;
|
|
|
|
/* compiled from: ActivityViewModelLazy.kt */
|
|
@Metadata(d1 = {"\u0000\"\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a1\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\n\b\u0000\u0010\u0002\u0018\u0001*\u00020\u0003*\u00020\u00042\u0010\b\n\u0010\u0005\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006H\u0087\b\u001aC\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\n\b\u0000\u0010\u0002\u0018\u0001*\u00020\u0003*\u00020\u00042\u0010\b\n\u0010\b\u001a\n\u0012\u0004\u0012\u00020\t\u0018\u00010\u00062\u0010\b\n\u0010\u0005\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006H\u0087\b¨\u0006\n"}, d2 = {"viewModels", "Lkotlin/Lazy;", "VM", "Landroidx/lifecycle/ViewModel;", "Landroidx/activity/ComponentActivity;", "factoryProducer", "Lkotlin/Function0;", "Landroidx/lifecycle/ViewModelProvider$Factory;", "extrasProducer", "Landroidx/lifecycle/viewmodel/CreationExtras;", "activity-ktx_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ActivityViewModelLazyKt {
|
|
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Superseded by viewModels that takes a CreationExtras")
|
|
public static final /* synthetic */ <VM extends ViewModel> Lazy<VM> viewModels(ComponentActivity componentActivity, Function0<? extends ViewModelProvider.Factory> function0) {
|
|
if (function0 == null) {
|
|
function0 = new ActivityViewModelLazyKt$viewModels$factoryPromise$1(componentActivity);
|
|
}
|
|
Intrinsics.reifiedOperationMarker(4, "VM");
|
|
return new ViewModelLazy(Reflection.getOrCreateKotlinClass(ViewModel.class), new ActivityViewModelLazyKt$viewModels$1(componentActivity), function0, new ActivityViewModelLazyKt$viewModels$2(componentActivity));
|
|
}
|
|
|
|
public static /* synthetic */ Lazy viewModels$default(ComponentActivity componentActivity, Function0 function0, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
function0 = null;
|
|
}
|
|
if (function0 == null) {
|
|
function0 = new ActivityViewModelLazyKt$viewModels$factoryPromise$1(componentActivity);
|
|
}
|
|
Intrinsics.reifiedOperationMarker(4, "VM");
|
|
return new ViewModelLazy(Reflection.getOrCreateKotlinClass(ViewModel.class), new ActivityViewModelLazyKt$viewModels$1(componentActivity), function0, new ActivityViewModelLazyKt$viewModels$2(componentActivity));
|
|
}
|
|
|
|
public static final /* synthetic */ <VM extends ViewModel> Lazy<VM> viewModels(ComponentActivity componentActivity, Function0<? extends CreationExtras> function0, Function0<? extends ViewModelProvider.Factory> function02) {
|
|
if (function02 == null) {
|
|
function02 = new ActivityViewModelLazyKt$viewModels$factoryPromise$2(componentActivity);
|
|
}
|
|
Intrinsics.reifiedOperationMarker(4, "VM");
|
|
return new ViewModelLazy(Reflection.getOrCreateKotlinClass(ViewModel.class), new ActivityViewModelLazyKt$viewModels$3(componentActivity), function02, new ActivityViewModelLazyKt$viewModels$4(function0, componentActivity));
|
|
}
|
|
|
|
public static /* synthetic */ Lazy viewModels$default(ComponentActivity componentActivity, Function0 function0, Function0 function02, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
function0 = null;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
function02 = null;
|
|
}
|
|
if (function02 == null) {
|
|
function02 = new ActivityViewModelLazyKt$viewModels$factoryPromise$2(componentActivity);
|
|
}
|
|
Intrinsics.reifiedOperationMarker(4, "VM");
|
|
return new ViewModelLazy(Reflection.getOrCreateKotlinClass(ViewModel.class), new ActivityViewModelLazyKt$viewModels$3(componentActivity), function02, new ActivityViewModelLazyKt$viewModels$4(function0, componentActivity));
|
|
}
|
|
}
|