From fc0179bcb86fb305eb6efa7ffc5e5628abf25c2c Mon Sep 17 00:00:00 2001 From: Ben Trengrove Date: Fri, 10 Mar 2023 09:11:43 +1100 Subject: [PATCH] Fix deprecation in adaptive --- .../kotlin/com/google/accompanist/adaptive/TwoPaneTest.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/adaptive/src/sharedTest/kotlin/com/google/accompanist/adaptive/TwoPaneTest.kt b/adaptive/src/sharedTest/kotlin/com/google/accompanist/adaptive/TwoPaneTest.kt index af51819c5..a24c83bdd 100644 --- a/adaptive/src/sharedTest/kotlin/com/google/accompanist/adaptive/TwoPaneTest.kt +++ b/adaptive/src/sharedTest/kotlin/com/google/accompanist/adaptive/TwoPaneTest.kt @@ -23,7 +23,6 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.geometry.Offset import androidx.compose.ui.geometry.Rect import androidx.compose.ui.graphics.Color -import androidx.compose.ui.graphics.toAndroidRect import androidx.compose.ui.layout.LayoutCoordinates import androidx.compose.ui.layout.onPlaced import androidx.compose.ui.platform.LocalDensity @@ -1578,7 +1577,12 @@ private fun fakeDisplayFeatures( } FoldingFeature( - windowBounds = bounds.toAndroidRect(), + windowBounds = android.graphics.Rect( + bounds.left.toInt(), + bounds.top.toInt(), + bounds.right.toInt(), + bounds.bottom.toInt() + ), center = center, size = size, state = localFoldingFeature.state,