From a494e0779c075573b188011037aa4b9f58ea9a63 Mon Sep 17 00:00:00 2001 From: "Andrei.Salavei" Date: Mon, 2 Sep 2024 13:23:19 +0200 Subject: [PATCH] Add opt-in --- .../foundation/relocation/BringIntoViewResponder.skiko.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/foundation/foundation/src/skikoMain/kotlin/androidx/compose/foundation/relocation/BringIntoViewResponder.skiko.kt b/compose/foundation/foundation/src/skikoMain/kotlin/androidx/compose/foundation/relocation/BringIntoViewResponder.skiko.kt index 8eb8b107b096f..de5bd8e6c5b6b 100644 --- a/compose/foundation/foundation/src/skikoMain/kotlin/androidx/compose/foundation/relocation/BringIntoViewResponder.skiko.kt +++ b/compose/foundation/foundation/src/skikoMain/kotlin/androidx/compose/foundation/relocation/BringIntoViewResponder.skiko.kt @@ -16,6 +16,7 @@ package androidx.compose.foundation.relocation +import androidx.compose.ui.InternalComposeUiApi import androidx.compose.ui.layout.positionInRoot import androidx.compose.ui.node.DelegatableNode import androidx.compose.ui.node.bringFocusIntoViewParent @@ -23,6 +24,7 @@ import androidx.compose.ui.node.bringFocusIntoViewParent /** * Platform specific internal API to bring a rectangle into view. */ +@OptIn(InternalComposeUiApi::class) internal actual fun DelegatableNode.defaultBringIntoViewParent(): BringIntoViewParent = BringIntoViewParent { childCoordinates, boundsProvider -> val childOffset = childCoordinates.positionInRoot()