Skip to content

Commit

Permalink
Fix deprecation in adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Mar 9, 2023
1 parent 37e8bb4 commit fc0179b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit fc0179b

Please sign in to comment.