mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
384 lines
26 KiB
Java
384 lines
26 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import androidx.compose.runtime.Applier;
|
|
import androidx.compose.runtime.ComposablesKt;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.CompositionLocalMap;
|
|
import androidx.compose.runtime.RecomposeScopeImplKt;
|
|
import androidx.compose.runtime.ScopeUpdateScope;
|
|
import androidx.compose.runtime.SkippableUpdater;
|
|
import androidx.compose.runtime.Updater;
|
|
import androidx.compose.ui.Alignment;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.layout.LayoutKt;
|
|
import androidx.compose.ui.layout.Measurable;
|
|
import androidx.compose.ui.layout.MeasurePolicy;
|
|
import androidx.compose.ui.layout.MeasureResult;
|
|
import androidx.compose.ui.layout.MeasureScope;
|
|
import androidx.compose.ui.layout.Placeable;
|
|
import androidx.compose.ui.node.ComposeUiNode;
|
|
import androidx.compose.ui.unit.Constraints;
|
|
import androidx.compose.ui.unit.ConstraintsKt;
|
|
import androidx.compose.ui.unit.IntSizeKt;
|
|
import androidx.compose.ui.unit.LayoutDirection;
|
|
import java.util.List;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.Ref;
|
|
|
|
/* compiled from: Box.kt */
|
|
@Metadata(d1 = {"\u0000d\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\u001a\u0015\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0007¢\u0006\u0002\u0010\u0013\u001aM\u0010\u000f\u001a\u00020\u00102\b\b\u0002\u0010\u0011\u001a\u00020\u00122\b\b\u0002\u0010\u0014\u001a\u00020\u00152\b\b\u0002\u0010\u0016\u001a\u00020\f2\u001c\u0010\u0017\u001a\u0018\u0012\u0004\u0012\u00020\u0019\u0012\u0004\u0012\u00020\u00100\u0018¢\u0006\u0002\b\u001a¢\u0006\u0002\b\u001bH\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u001c\u001a\u0018\u0010\u001d\u001a\u00020\u00012\u0006\u0010\u001e\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\fH\u0000\u001a\u001d\u0010\u001f\u001a\u00020\u00012\u0006\u0010\u001e\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\fH\u0001¢\u0006\u0002\u0010 \u001a<\u0010!\u001a\u00020\u0010*\u00020\"2\u0006\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020\b2\u0006\u0010&\u001a\u00020'2\u0006\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020)2\u0006\u0010\u001e\u001a\u00020\u0015H\u0002\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003\"\u0014\u0010\u0004\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0003\"\u001a\u0010\u0006\u001a\u0004\u0018\u00010\u0007*\u00020\b8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\n\"\u0018\u0010\u000b\u001a\u00020\f*\u00020\b8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006+"}, d2 = {"DefaultBoxMeasurePolicy", "Landroidx/compose/ui/layout/MeasurePolicy;", "getDefaultBoxMeasurePolicy", "()Landroidx/compose/ui/layout/MeasurePolicy;", "EmptyBoxMeasurePolicy", "getEmptyBoxMeasurePolicy", "boxChildDataNode", "Landroidx/compose/foundation/layout/BoxChildDataNode;", "Landroidx/compose/ui/layout/Measurable;", "getBoxChildDataNode", "(Landroidx/compose/ui/layout/Measurable;)Landroidx/compose/foundation/layout/BoxChildDataNode;", "matchesParentSize", "", "getMatchesParentSize", "(Landroidx/compose/ui/layout/Measurable;)Z", "Box", "", "modifier", "Landroidx/compose/ui/Modifier;", "(Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;I)V", "contentAlignment", "Landroidx/compose/ui/Alignment;", "propagateMinConstraints", "content", "Lkotlin/Function1;", "Landroidx/compose/foundation/layout/BoxScope;", "Landroidx/compose/runtime/Composable;", "Lkotlin/ExtensionFunctionType;", "(Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment;ZLkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V", "boxMeasurePolicy", "alignment", "rememberBoxMeasurePolicy", "(Landroidx/compose/ui/Alignment;ZLandroidx/compose/runtime/Composer;I)Landroidx/compose/ui/layout/MeasurePolicy;", "placeInBox", "Landroidx/compose/ui/layout/Placeable$PlacementScope;", "placeable", "Landroidx/compose/ui/layout/Placeable;", "measurable", "layoutDirection", "Landroidx/compose/ui/unit/LayoutDirection;", "boxWidth", "", "boxHeight", "foundation-layout_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class BoxKt {
|
|
private static final MeasurePolicy DefaultBoxMeasurePolicy = boxMeasurePolicy(Alignment.INSTANCE.getTopStart(), false);
|
|
private static final MeasurePolicy EmptyBoxMeasurePolicy = new MeasurePolicy() { // from class: androidx.compose.foundation.layout.BoxKt$EmptyBoxMeasurePolicy$1
|
|
@Override // androidx.compose.ui.layout.MeasurePolicy
|
|
/* renamed from: measure-3p2s80s */
|
|
public final MeasureResult mo21measure3p2s80s(MeasureScope MeasurePolicy, List<? extends Measurable> list, long j) {
|
|
Intrinsics.checkNotNullParameter(MeasurePolicy, "$this$MeasurePolicy");
|
|
Intrinsics.checkNotNullParameter(list, "<anonymous parameter 0>");
|
|
return MeasureScope.layout$default(MeasurePolicy, Constraints.m4841getMinWidthimpl(j), Constraints.m4840getMinHeightimpl(j), null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.BoxKt$EmptyBoxMeasurePolicy$1$measure$1
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Placeable.PlacementScope layout) {
|
|
Intrinsics.checkNotNullParameter(layout, "$this$layout");
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
|
|
invoke2(placementScope);
|
|
return Unit.INSTANCE;
|
|
}
|
|
}, 4, null);
|
|
}
|
|
};
|
|
|
|
public static final MeasurePolicy getDefaultBoxMeasurePolicy() {
|
|
return DefaultBoxMeasurePolicy;
|
|
}
|
|
|
|
public static final MeasurePolicy getEmptyBoxMeasurePolicy() {
|
|
return EmptyBoxMeasurePolicy;
|
|
}
|
|
|
|
public static final void Box(Modifier modifier, Alignment alignment, boolean z, Function3<? super BoxScope, ? super Composer, ? super Integer, Unit> content, Composer composer, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(content, "content");
|
|
composer.startReplaceableGroup(733328855);
|
|
ComposerKt.sourceInformation(composer, "CC(Box)P(2,1,3)69@3214L67,70@3286L130:Box.kt#2w3rfo");
|
|
if ((i2 & 1) != 0) {
|
|
modifier = Modifier.INSTANCE;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
alignment = Alignment.INSTANCE.getTopStart();
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
z = false;
|
|
}
|
|
int i3 = i >> 3;
|
|
MeasurePolicy rememberBoxMeasurePolicy = rememberBoxMeasurePolicy(alignment, z, composer, (i3 & 112) | (i3 & 14));
|
|
composer.startReplaceableGroup(-1323940314);
|
|
ComposerKt.sourceInformation(composer, "CC(Layout)P(!1,2)77@3132L23,79@3222L420:Layout.kt#80mrfh");
|
|
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
|
|
CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
|
|
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
|
|
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> modifierMaterializerOf = LayoutKt.modifierMaterializerOf(modifier);
|
|
int i4 = ((((i << 3) & 112) << 9) & 7168) | 6;
|
|
if (!(composer.getApplier() instanceof Applier)) {
|
|
ComposablesKt.invalidApplier();
|
|
}
|
|
composer.startReusableNode();
|
|
if (composer.getInserting()) {
|
|
composer.createNode(constructor);
|
|
} else {
|
|
composer.useNode();
|
|
}
|
|
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
|
|
Updater.m2280setimpl(m2273constructorimpl, rememberBoxMeasurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
|
|
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
|
|
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
|
|
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
|
|
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
|
|
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
|
|
}
|
|
modifierMaterializerOf.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(composer)), composer, Integer.valueOf((i4 >> 3) & 112));
|
|
composer.startReplaceableGroup(2058660585);
|
|
ComposerKt.sourceInformationMarkerStart(composer, -1253629358, "C71@3331L9:Box.kt#2w3rfo");
|
|
content.invoke(BoxScopeInstance.INSTANCE, composer, Integer.valueOf(((i >> 6) & 112) | 6));
|
|
ComposerKt.sourceInformationMarkerEnd(composer);
|
|
composer.endReplaceableGroup();
|
|
composer.endNode();
|
|
composer.endReplaceableGroup();
|
|
composer.endReplaceableGroup();
|
|
}
|
|
|
|
public static final MeasurePolicy rememberBoxMeasurePolicy(Alignment alignment, boolean z, Composer composer, int i) {
|
|
MeasurePolicy measurePolicy;
|
|
Intrinsics.checkNotNullParameter(alignment, "alignment");
|
|
composer.startReplaceableGroup(56522820);
|
|
ComposerKt.sourceInformation(composer, "C(rememberBoxMeasurePolicy)85@3660L113:Box.kt#2w3rfo");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(56522820, i, -1, "androidx.compose.foundation.layout.rememberBoxMeasurePolicy (Box.kt:79)");
|
|
}
|
|
if (!Intrinsics.areEqual(alignment, Alignment.INSTANCE.getTopStart()) || z) {
|
|
Boolean valueOf = Boolean.valueOf(z);
|
|
composer.startReplaceableGroup(511388516);
|
|
ComposerKt.sourceInformation(composer, "CC(remember)P(1,2):Composables.kt#9igjgp");
|
|
boolean changed = composer.changed(valueOf) | composer.changed(alignment);
|
|
Object rememberedValue = composer.rememberedValue();
|
|
if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = boxMeasurePolicy(alignment, z);
|
|
composer.updateRememberedValue(rememberedValue);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
measurePolicy = (MeasurePolicy) rememberedValue;
|
|
} else {
|
|
measurePolicy = DefaultBoxMeasurePolicy;
|
|
}
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return measurePolicy;
|
|
}
|
|
|
|
public static final MeasurePolicy boxMeasurePolicy(final Alignment alignment, final boolean z) {
|
|
Intrinsics.checkNotNullParameter(alignment, "alignment");
|
|
return new MeasurePolicy() { // from class: androidx.compose.foundation.layout.BoxKt$boxMeasurePolicy$1
|
|
@Override // androidx.compose.ui.layout.MeasurePolicy
|
|
/* renamed from: measure-3p2s80s */
|
|
public final MeasureResult mo21measure3p2s80s(final MeasureScope MeasurePolicy, final List<? extends Measurable> measurables, long j) {
|
|
boolean matchesParentSize;
|
|
boolean matchesParentSize2;
|
|
boolean matchesParentSize3;
|
|
int m4841getMinWidthimpl;
|
|
int m4840getMinHeightimpl;
|
|
final Placeable mo3876measureBRTryo0;
|
|
Intrinsics.checkNotNullParameter(MeasurePolicy, "$this$MeasurePolicy");
|
|
Intrinsics.checkNotNullParameter(measurables, "measurables");
|
|
if (measurables.isEmpty()) {
|
|
return MeasureScope.layout$default(MeasurePolicy, Constraints.m4841getMinWidthimpl(j), Constraints.m4840getMinHeightimpl(j), null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.BoxKt$boxMeasurePolicy$1$measure$1
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Placeable.PlacementScope layout) {
|
|
Intrinsics.checkNotNullParameter(layout, "$this$layout");
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
|
|
invoke2(placementScope);
|
|
return Unit.INSTANCE;
|
|
}
|
|
}, 4, null);
|
|
}
|
|
long m4830copyZbe2FdA$default = z ? j : Constraints.m4830copyZbe2FdA$default(j, 0, 0, 0, 0, 10, null);
|
|
if (measurables.size() == 1) {
|
|
final Measurable measurable = measurables.get(0);
|
|
matchesParentSize3 = BoxKt.getMatchesParentSize(measurable);
|
|
if (!matchesParentSize3) {
|
|
Placeable mo3876measureBRTryo02 = measurable.mo3876measureBRTryo0(m4830copyZbe2FdA$default);
|
|
m4841getMinWidthimpl = Math.max(Constraints.m4841getMinWidthimpl(j), mo3876measureBRTryo02.getWidth());
|
|
m4840getMinHeightimpl = Math.max(Constraints.m4840getMinHeightimpl(j), mo3876measureBRTryo02.getHeight());
|
|
mo3876measureBRTryo0 = mo3876measureBRTryo02;
|
|
} else {
|
|
m4841getMinWidthimpl = Constraints.m4841getMinWidthimpl(j);
|
|
m4840getMinHeightimpl = Constraints.m4840getMinHeightimpl(j);
|
|
mo3876measureBRTryo0 = measurable.mo3876measureBRTryo0(Constraints.INSTANCE.m4847fixedJhjzzOo(Constraints.m4841getMinWidthimpl(j), Constraints.m4840getMinHeightimpl(j)));
|
|
}
|
|
final Alignment alignment2 = alignment;
|
|
final int i = m4841getMinWidthimpl;
|
|
final int i2 = m4840getMinHeightimpl;
|
|
return MeasureScope.layout$default(MeasurePolicy, m4841getMinWidthimpl, m4840getMinHeightimpl, null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.BoxKt$boxMeasurePolicy$1$measure$2
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
|
|
invoke2(placementScope);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Placeable.PlacementScope layout) {
|
|
Intrinsics.checkNotNullParameter(layout, "$this$layout");
|
|
BoxKt.placeInBox(layout, Placeable.this, measurable, MeasurePolicy.getLayoutDirection(), i, i2, alignment2);
|
|
}
|
|
}, 4, null);
|
|
}
|
|
final Placeable[] placeableArr = new Placeable[measurables.size()];
|
|
final Ref.IntRef intRef = new Ref.IntRef();
|
|
intRef.element = Constraints.m4841getMinWidthimpl(j);
|
|
final Ref.IntRef intRef2 = new Ref.IntRef();
|
|
intRef2.element = Constraints.m4840getMinHeightimpl(j);
|
|
int size = measurables.size();
|
|
boolean z2 = false;
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
Measurable measurable2 = measurables.get(i3);
|
|
matchesParentSize2 = BoxKt.getMatchesParentSize(measurable2);
|
|
if (matchesParentSize2) {
|
|
z2 = true;
|
|
} else {
|
|
Placeable mo3876measureBRTryo03 = measurable2.mo3876measureBRTryo0(m4830copyZbe2FdA$default);
|
|
placeableArr[i3] = mo3876measureBRTryo03;
|
|
intRef.element = Math.max(intRef.element, mo3876measureBRTryo03.getWidth());
|
|
intRef2.element = Math.max(intRef2.element, mo3876measureBRTryo03.getHeight());
|
|
}
|
|
}
|
|
if (z2) {
|
|
long Constraints = ConstraintsKt.Constraints(intRef.element != Integer.MAX_VALUE ? intRef.element : 0, intRef.element, intRef2.element != Integer.MAX_VALUE ? intRef2.element : 0, intRef2.element);
|
|
int size2 = measurables.size();
|
|
for (int i4 = 0; i4 < size2; i4++) {
|
|
Measurable measurable3 = measurables.get(i4);
|
|
matchesParentSize = BoxKt.getMatchesParentSize(measurable3);
|
|
if (matchesParentSize) {
|
|
placeableArr[i4] = measurable3.mo3876measureBRTryo0(Constraints);
|
|
}
|
|
}
|
|
}
|
|
int i5 = intRef.element;
|
|
int i6 = intRef2.element;
|
|
final Alignment alignment3 = alignment;
|
|
return MeasureScope.layout$default(MeasurePolicy, i5, i6, null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.BoxKt$boxMeasurePolicy$1$measure$5
|
|
/* 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(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
|
|
invoke2(placementScope);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Placeable.PlacementScope layout) {
|
|
Intrinsics.checkNotNullParameter(layout, "$this$layout");
|
|
Placeable[] placeableArr2 = placeableArr;
|
|
List<Measurable> list = measurables;
|
|
MeasureScope measureScope = MeasurePolicy;
|
|
Ref.IntRef intRef3 = intRef;
|
|
Ref.IntRef intRef4 = intRef2;
|
|
Alignment alignment4 = alignment3;
|
|
int length = placeableArr2.length;
|
|
int i7 = 0;
|
|
int i8 = 0;
|
|
while (i8 < length) {
|
|
Placeable placeable = placeableArr2[i8];
|
|
Intrinsics.checkNotNull(placeable, "null cannot be cast to non-null type androidx.compose.ui.layout.Placeable");
|
|
BoxKt.placeInBox(layout, placeable, list.get(i7), measureScope.getLayoutDirection(), intRef3.element, intRef4.element, alignment4);
|
|
i8++;
|
|
i7++;
|
|
}
|
|
}
|
|
}, 4, null);
|
|
}
|
|
};
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void placeInBox(Placeable.PlacementScope placementScope, Placeable placeable, Measurable measurable, LayoutDirection layoutDirection, int i, int i2, Alignment alignment) {
|
|
Alignment alignment2;
|
|
BoxChildDataNode boxChildDataNode = getBoxChildDataNode(measurable);
|
|
Placeable.PlacementScope.m3933place70tqf50$default(placementScope, placeable, ((boxChildDataNode == null || (alignment2 = boxChildDataNode.getAlignment()) == null) ? alignment : alignment2).mo2290alignKFBX0sM(IntSizeKt.IntSize(placeable.getWidth(), placeable.getHeight()), IntSizeKt.IntSize(i, i2), layoutDirection), 0.0f, 2, null);
|
|
}
|
|
|
|
public static final void Box(final Modifier modifier, Composer composer, final int i) {
|
|
int i2;
|
|
Intrinsics.checkNotNullParameter(modifier, "modifier");
|
|
Composer startRestartGroup = composer.startRestartGroup(-211209833);
|
|
ComposerKt.sourceInformation(startRestartGroup, "C(Box)199@7940L70:Box.kt#2w3rfo");
|
|
if ((i & 14) == 0) {
|
|
i2 = (startRestartGroup.changed(modifier) ? 4 : 2) | i;
|
|
} else {
|
|
i2 = i;
|
|
}
|
|
if ((i2 & 11) != 2 || !startRestartGroup.getSkipping()) {
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-211209833, i2, -1, "androidx.compose.foundation.layout.Box (Box.kt:198)");
|
|
}
|
|
MeasurePolicy measurePolicy = EmptyBoxMeasurePolicy;
|
|
startRestartGroup.startReplaceableGroup(-1323940314);
|
|
ComposerKt.sourceInformation(startRestartGroup, "CC(Layout)P(!1,2)77@3132L23,79@3222L420:Layout.kt#80mrfh");
|
|
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(startRestartGroup, 0);
|
|
CompositionLocalMap currentCompositionLocalMap = startRestartGroup.getCurrentCompositionLocalMap();
|
|
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
|
|
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> modifierMaterializerOf = LayoutKt.modifierMaterializerOf(modifier);
|
|
int i3 = (((((i2 << 3) & 112) | 384) << 9) & 7168) | 6;
|
|
if (!(startRestartGroup.getApplier() instanceof Applier)) {
|
|
ComposablesKt.invalidApplier();
|
|
}
|
|
startRestartGroup.startReusableNode();
|
|
if (startRestartGroup.getInserting()) {
|
|
startRestartGroup.createNode(constructor);
|
|
} else {
|
|
startRestartGroup.useNode();
|
|
}
|
|
Composer m2273constructorimpl = Updater.m2273constructorimpl(startRestartGroup);
|
|
Updater.m2280setimpl(m2273constructorimpl, measurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
|
|
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
|
|
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
|
|
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
|
|
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
|
|
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
|
|
}
|
|
modifierMaterializerOf.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(startRestartGroup)), startRestartGroup, Integer.valueOf((i3 >> 3) & 112));
|
|
startRestartGroup.startReplaceableGroup(2058660585);
|
|
ComposerKt.sourceInformationMarkerStart(startRestartGroup, -1253624724, "C:Box.kt#2w3rfo");
|
|
ComposerKt.sourceInformationMarkerEnd(startRestartGroup);
|
|
startRestartGroup.endReplaceableGroup();
|
|
startRestartGroup.endNode();
|
|
startRestartGroup.endReplaceableGroup();
|
|
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.layout.BoxKt$Box$3
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
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 i4) {
|
|
BoxKt.Box(Modifier.this, composer2, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
|
}
|
|
});
|
|
}
|
|
|
|
private static final BoxChildDataNode getBoxChildDataNode(Measurable measurable) {
|
|
Object parentData = measurable.getParentData();
|
|
if (parentData instanceof BoxChildDataNode) {
|
|
return (BoxChildDataNode) parentData;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final boolean getMatchesParentSize(Measurable measurable) {
|
|
BoxChildDataNode boxChildDataNode = getBoxChildDataNode(measurable);
|
|
if (boxChildDataNode != null) {
|
|
return boxChildDataNode.getMatchParentSize();
|
|
}
|
|
return false;
|
|
}
|
|
}
|