Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f7b8c80 authored by Ale Nijamkin's avatar Ale Nijamkin Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Removes unused layoutWidth." into main

parents cf08cb3a d9c1a602
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -373,7 +373,6 @@ private fun SceneScope.MediaIfVisible(
) {
    if (viewModel.isMediaVisible()) {
        val density = LocalDensity.current
        val layoutWidth = remember { mutableStateOf(0) }
        val mediaHeight = dimensionResource(R.dimen.qs_media_session_height_expanded)

        MediaCarousel(
@@ -389,7 +388,7 @@ private fun SceneScope.MediaIfVisible(
                    layout(placeable.width, placeable.height) { placeable.placeRelative(0, 0) }
                },
            mediaHost = mediaHost,
            layoutWidth = layoutWidth.value,
            layoutWidth = 0,
            layoutHeight = with(density) { mediaHeight.toPx() }.toInt(),
            carouselController = mediaCarouselController,
        )