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

Commit f593f863 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Fix modes tile tap target

Before, the ripple effect when tapping was covering a rectangular area
instead of only the inside of the rounded rectangle.

Bug: 346519570
Test: manual
Flag: android.app.modes_ui
Change-Id: I20f5939827a8785c8c8b6f8e7bcf4e80660ec544
parent 1d39426b
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -50,14 +50,14 @@ fun ModeTile(viewModel: ModeTileViewModel) {
        Surface(
            color = tileColor,
            shape = RoundedCornerShape(16.dp),
        ) {
            Row(
                modifier =
                    Modifier.combinedClickable(
                            onClick = viewModel.onClick,
                            onLongClick = viewModel.onLongClick
                ),
        ) {
            Row(
                modifier = Modifier.padding(20.dp),
                        )
                        .padding(20.dp),
                verticalAlignment = Alignment.CenterVertically,
                horizontalArrangement =
                    Arrangement.spacedBy(