mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
26 lines
1.5 KiB
Java
26 lines
1.5 KiB
Java
package androidx.compose.ui.layout;
|
|
|
|
import androidx.compose.ui.Modifier;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: LayoutId.kt */
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0014\u0010\u0000\u001a\u00020\u0005*\u00020\u00052\u0006\u0010\u0000\u001a\u00020\u0001H\u0007\"\u0017\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0006"}, d2 = {"layoutId", "", "Landroidx/compose/ui/layout/Measurable;", "getLayoutId", "(Landroidx/compose/ui/layout/Measurable;)Ljava/lang/Object;", "Landroidx/compose/ui/Modifier;", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class LayoutIdKt {
|
|
public static final Modifier layoutId(Modifier modifier, Object layoutId) {
|
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
|
Intrinsics.checkNotNullParameter(layoutId, "layoutId");
|
|
return modifier.then(new LayoutIdElement(layoutId));
|
|
}
|
|
|
|
public static final Object getLayoutId(Measurable measurable) {
|
|
Intrinsics.checkNotNullParameter(measurable, "<this>");
|
|
Object parentData = measurable.getParentData();
|
|
LayoutIdParentData layoutIdParentData = parentData instanceof LayoutIdParentData ? (LayoutIdParentData) parentData : null;
|
|
if (layoutIdParentData != null) {
|
|
return layoutIdParentData.getLayoutId();
|
|
}
|
|
return null;
|
|
}
|
|
}
|