Rabbit-R1/switch port/java/sources/androidx/activity/ActivityViewModelLazyKt$viewModels$4.java

31 lines
1.6 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.activity;
import androidx.lifecycle.viewmodel.CreationExtras;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
/* compiled from: ActivityViewModelLazy.kt */
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\n\b\u0000\u0010\u0002\u0018\u0001*\u00020\u0003H\\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "Landroidx/lifecycle/viewmodel/CreationExtras;", "VM", "Landroidx/lifecycle/ViewModel;", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 176)
/* loaded from: classes.dex */
public final class ActivityViewModelLazyKt$viewModels$4 extends Lambda implements Function0<CreationExtras> {
final /* synthetic */ Function0<CreationExtras> $extrasProducer;
final /* synthetic */ ComponentActivity $this_viewModels;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public ActivityViewModelLazyKt$viewModels$4(Function0<? extends CreationExtras> function0, ComponentActivity componentActivity) {
super(0);
this.$extrasProducer = function0;
this.$this_viewModels = componentActivity;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // kotlin.jvm.functions.Function0
public final CreationExtras invoke() {
CreationExtras invoke;
Function0<CreationExtras> function0 = this.$extrasProducer;
return (function0 == null || (invoke = function0.invoke()) == null) ? this.$this_viewModels.getDefaultViewModelCreationExtras() : invoke;
}
}