Rabbit-R1/android (non root)/java/sources/androidx/lifecycle/ViewModelProviderGetKt.java

25 lines
1.7 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.lifecycle;
import androidx.lifecycle.viewmodel.CreationExtras;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: ViewModelProvider.kt */
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0000\u001a\u001e\u0010\u0004\u001a\u0002H\u0005\"\n\b\u0000\u0010\u0005\u0018\u0001*\u00020\u0006*\u00020\u0007H\u0087\\u0006\u0002\u0010\\u0006\t"}, d2 = {"defaultCreationExtras", "Landroidx/lifecycle/viewmodel/CreationExtras;", "owner", "Landroidx/lifecycle/ViewModelStoreOwner;", "get", "VM", "Landroidx/lifecycle/ViewModel;", "Landroidx/lifecycle/ViewModelProvider;", "(Landroidx/lifecycle/ViewModelProvider;)Landroidx/lifecycle/ViewModel;", "lifecycle-viewmodel_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class ViewModelProviderGetKt {
public static final CreationExtras defaultCreationExtras(ViewModelStoreOwner owner) {
Intrinsics.checkNotNullParameter(owner, "owner");
if (owner instanceof HasDefaultViewModelProviderFactory) {
return ((HasDefaultViewModelProviderFactory) owner).getDefaultViewModelCreationExtras();
}
return CreationExtras.Empty.INSTANCE;
}
public static final /* synthetic */ <VM extends ViewModel> VM get(ViewModelProvider viewModelProvider) {
Intrinsics.checkNotNullParameter(viewModelProvider, "<this>");
Intrinsics.reifiedOperationMarker(4, "VM");
return (VM) viewModelProvider.get(ViewModel.class);
}
}