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

Commit dab63b1b authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

Use the correct background color for tiles.

Icon background is reserved for the dual target zone in large tiles.

Test: manually launching QS and resizing down the BT tile
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Fixes: 378700190
Change-Id: I9b5828241d008e2556d7a9aad16dd5a1bb261997
parent 085a001c
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -130,15 +130,7 @@ fun Tile(

    // TODO(b/361789146): Draw the shapes instead of clipping
    val tileShape = TileDefaults.animateTileShape(uiState.state)
    val animatedColor by
        animateColorAsState(
            if (iconOnly || !uiState.handlesSecondaryClick) {
                colors.iconBackground
            } else {
                colors.background
            },
            label = "QSTileBackgroundColor",
        )
    val animatedColor by animateColorAsState(colors.background, label = "QSTileBackgroundColor")

    TileExpandable(
        color = { animatedColor },