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

Commit 2cbc652a authored by Andreas Miko's avatar Andreas Miko
Browse files

Fix expansion pill background not showing / overlapping

Background was broken in this CL: ag/33264295. It is tested by
screenshot but change was accepted.

Bug: 389839492
Test: Screenshot test
Flag: com.android.systemui.notification_bundle_ui
Change-Id: Ie3ac5b64731a0bf1bbe7808660391b4359d12b6e
parent e4e5ddd8
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -140,6 +140,8 @@ fun ContentScope.ExpansionControl(
@Composable
private fun ContentScope.PillBackground(modifier: Modifier = Modifier) {
    val surfaceColor = notificationElementSurfaceColor()
    // Needs to be a shared element so it does not overlap while animating
    ElementWithValues(NotificationRowPrimitives.Elements.PillBackground, modifier) {
        Box(
            modifier =
                Modifier.drawBehind {
@@ -150,6 +152,7 @@ private fun ContentScope.PillBackground(modifier: Modifier = Modifier) {
                }
        )
    }
}

@Composable
@ReadOnlyComposable