mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
37 lines
2.2 KiB
Java
37 lines
2.2 KiB
Java
package androidx.compose.ui.layout;
|
|
|
|
import androidx.compose.ui.node.LayoutNode;
|
|
import androidx.compose.ui.node.LookaheadDelegate;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: LookaheadLayoutCoordinates.kt */
|
|
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00018@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"rootLookaheadDelegate", "Landroidx/compose/ui/node/LookaheadDelegate;", "getRootLookaheadDelegate", "(Landroidx/compose/ui/node/LookaheadDelegate;)Landroidx/compose/ui/node/LookaheadDelegate;", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class LookaheadLayoutCoordinatesKt {
|
|
public static final LookaheadDelegate getRootLookaheadDelegate(LookaheadDelegate lookaheadDelegate) {
|
|
Intrinsics.checkNotNullParameter(lookaheadDelegate, "<this>");
|
|
LayoutNode layoutNode = lookaheadDelegate.getLayoutNode();
|
|
while (true) {
|
|
LayoutNode parent$ui_release = layoutNode.getParent$ui_release();
|
|
if ((parent$ui_release != null ? parent$ui_release.getLookaheadRoot() : null) != null) {
|
|
LayoutNode parent$ui_release2 = layoutNode.getParent$ui_release();
|
|
LayoutNode lookaheadRoot = parent$ui_release2 != null ? parent$ui_release2.getLookaheadRoot() : null;
|
|
Intrinsics.checkNotNull(lookaheadRoot);
|
|
if (lookaheadRoot.getIsVirtualLookaheadRoot()) {
|
|
layoutNode = layoutNode.getParent$ui_release();
|
|
Intrinsics.checkNotNull(layoutNode);
|
|
} else {
|
|
LayoutNode parent$ui_release3 = layoutNode.getParent$ui_release();
|
|
Intrinsics.checkNotNull(parent$ui_release3);
|
|
layoutNode = parent$ui_release3.getLookaheadRoot();
|
|
Intrinsics.checkNotNull(layoutNode);
|
|
}
|
|
} else {
|
|
LookaheadDelegate lookaheadDelegate2 = layoutNode.getOuterCoordinator$ui_release().getLookaheadDelegate();
|
|
Intrinsics.checkNotNull(lookaheadDelegate2);
|
|
return lookaheadDelegate2;
|
|
}
|
|
}
|
|
}
|
|
}
|