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

Commit ec612903 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Task manager] Set the content description for the number button" into main

parents 4e7094f4 bc35e4b9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ private fun RowScope.ForegroundServicesButton(
    } else {
        NumberButton(
            model.foregroundServicesCount,
            contentDescription = model.text,
            showNewDot = model.hasNewChanges,
            onClick = model.onClick,
        )
@@ -284,6 +285,7 @@ fun IconButton(model: FooterActionsButtonViewModel, modifier: Modifier = Modifie
@Composable
private fun NumberButton(
    number: Int,
    contentDescription: String,
    showNewDot: Boolean,
    onClick: (Expandable) -> Unit,
    modifier: Modifier = Modifier,
@@ -314,7 +316,10 @@ private fun NumberButton(
            ) {
                Text(
                    number.toString(),
                    modifier = Modifier.align(Alignment.Center),
                    modifier =
                        Modifier.align(Alignment.Center).semantics {
                            this.contentDescription = contentDescription
                        },
                    style = MaterialTheme.typography.bodyLarge,
                    color = colorAttr(R.attr.onShadeInactiveVariant),
                    // TODO(b/242040009): This should only use a standard text style instead and