mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
25 lines
1.7 KiB
Java
25 lines
1.7 KiB
Java
|
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\b¢\u0006\u0002\u0010\b¨\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);
|
||
|
}
|
||
|
}
|