mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
120 lines
7.6 KiB
Java
120 lines
7.6 KiB
Java
package androidx.compose.foundation.lazy.layout;
|
|
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.CompositionLocalKt;
|
|
import androidx.compose.runtime.ProvidableCompositionLocal;
|
|
import androidx.compose.runtime.ProvidedValue;
|
|
import androidx.compose.runtime.RecomposeScopeImplKt;
|
|
import androidx.compose.runtime.ScopeUpdateScope;
|
|
import androidx.compose.runtime.internal.ComposableLambdaKt;
|
|
import androidx.compose.runtime.saveable.RememberSaveableKt;
|
|
import androidx.compose.runtime.saveable.SaveableStateHolder;
|
|
import androidx.compose.runtime.saveable.SaveableStateHolderKt;
|
|
import androidx.compose.runtime.saveable.SaveableStateRegistry;
|
|
import androidx.compose.runtime.saveable.SaveableStateRegistryKt;
|
|
import androidx.compose.runtime.saveable.Saver;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.collections.MapsKt;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: LazySaveableStateHolder.kt */
|
|
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a&\u0010\u0000\u001a\u00020\u00012\u0017\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0005H\u0001¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"LazySaveableStateHolderProvider", "", "content", "Lkotlin/Function1;", "Landroidx/compose/runtime/saveable/SaveableStateHolder;", "Landroidx/compose/runtime/Composable;", "(Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;I)V", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class LazySaveableStateHolderKt {
|
|
public static final void LazySaveableStateHolderProvider(final Function3<? super SaveableStateHolder, ? super Composer, ? super Integer, Unit> content, Composer composer, final int i) {
|
|
final int i2;
|
|
Intrinsics.checkNotNullParameter(content, "content");
|
|
Composer startRestartGroup = composer.startRestartGroup(674185128);
|
|
ComposerKt.sourceInformation(startRestartGroup, "C(LazySaveableStateHolderProvider)42@2089L7,43@2114L172,48@2291L161:LazySaveableStateHolder.kt#wow0x6");
|
|
if ((i & 14) == 0) {
|
|
i2 = (startRestartGroup.changedInstance(content) ? 4 : 2) | i;
|
|
} else {
|
|
i2 = i;
|
|
}
|
|
if ((i2 & 11) != 2 || !startRestartGroup.getSkipping()) {
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(674185128, i2, -1, "androidx.compose.foundation.lazy.layout.LazySaveableStateHolderProvider (LazySaveableStateHolder.kt:41)");
|
|
}
|
|
ProvidableCompositionLocal<SaveableStateRegistry> localSaveableStateRegistry = SaveableStateRegistryKt.getLocalSaveableStateRegistry();
|
|
ComposerKt.sourceInformationMarkerStart(startRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
|
Object consume = startRestartGroup.consume(localSaveableStateRegistry);
|
|
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
|
|
final SaveableStateRegistry saveableStateRegistry = (SaveableStateRegistry) consume;
|
|
final LazySaveableStateHolder lazySaveableStateHolder = (LazySaveableStateHolder) RememberSaveableKt.m2286rememberSaveable(new Object[]{saveableStateRegistry}, (Saver) LazySaveableStateHolder.INSTANCE.saver(saveableStateRegistry), (String) null, (Function0) new Function0<LazySaveableStateHolder>() { // from class: androidx.compose.foundation.lazy.layout.LazySaveableStateHolderKt$LazySaveableStateHolderProvider$holder$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final LazySaveableStateHolder invoke() {
|
|
return new LazySaveableStateHolder(SaveableStateRegistry.this, MapsKt.emptyMap());
|
|
}
|
|
}, startRestartGroup, 72, 4);
|
|
CompositionLocalKt.CompositionLocalProvider((ProvidedValue<?>[]) new ProvidedValue[]{SaveableStateRegistryKt.getLocalSaveableStateRegistry().provides(lazySaveableStateHolder)}, ComposableLambdaKt.composableLambda(startRestartGroup, 1863926504, true, new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.foundation.lazy.layout.LazySaveableStateHolderKt$LazySaveableStateHolderProvider$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
|
|
invoke(composer2, num.intValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public final void invoke(Composer composer2, int i3) {
|
|
ComposerKt.sourceInformation(composer2, "C49@2393L29,50@2431L15:LazySaveableStateHolder.kt#wow0x6");
|
|
if ((i3 & 11) != 2 || !composer2.getSkipping()) {
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(1863926504, i3, -1, "androidx.compose.foundation.lazy.layout.LazySaveableStateHolderProvider.<anonymous> (LazySaveableStateHolder.kt:48)");
|
|
}
|
|
LazySaveableStateHolder.this.setWrappedHolder(SaveableStateHolderKt.rememberSaveableStateHolder(composer2, 0));
|
|
content.invoke(LazySaveableStateHolder.this, composer2, Integer.valueOf(((i2 << 3) & 112) | 8));
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
composer2.skipToGroupEnd();
|
|
}
|
|
}), startRestartGroup, 56);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
} else {
|
|
startRestartGroup.skipToGroupEnd();
|
|
}
|
|
ScopeUpdateScope endRestartGroup = startRestartGroup.endRestartGroup();
|
|
if (endRestartGroup == null) {
|
|
return;
|
|
}
|
|
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.foundation.lazy.layout.LazySaveableStateHolderKt$LazySaveableStateHolderProvider$2
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
|
|
invoke(composer2, num.intValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public final void invoke(Composer composer2, int i3) {
|
|
LazySaveableStateHolderKt.LazySaveableStateHolderProvider(content, composer2, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
|
}
|
|
});
|
|
}
|
|
}
|