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

Commit d503997b authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Remove paddings from media carousel content

It is better to make these adjustment in through the locations containing media carousel instead

Flag: com.android.systemui.media_controls_in_compose
Bug: 432016458
Test: Checked UI
Change-Id: Idac91f0ae0a158b8e08924a619e1cce74468364f
parent b344755f
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -235,16 +235,10 @@ private fun CardCarouselContent(
    val isSwipingEnabled = behavior.isCarouselScrollingEnabled && !isFalseTouchDetected

    val roundedCornerShape = RoundedCornerShape(32.dp)
    val padding =
        if (presentationStyle == MediaPresentationStyle.Large) {
            0.dp
        } else {
            8.dp
        }

    Box(
        modifier =
            modifier.padding(padding).clip(roundedCornerShape).pointerInput(behavior) {
            modifier.clip(roundedCornerShape).pointerInput(behavior) {
                if (behavior.isCarouselScrollFalseTouch != null) {
                    awaitEachGesture {
                        awaitFirstDown(false, PointerEventPass.Initial)