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

Commit fe384731 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Chip] Always announce the screen record countdown chip for a11y.

Fixes: 407793362
Bug: 372657935
Flag: com.android.systemui.status_bar_chips_modernization
Test: Start screen recording -> verify 3-2-1 countdown is announced to
accessibility (usually only one or two of the numbers is announced
because there's a lot of conflicting announcements at the same time, but
I usually hear at least one of the numbers)
Change-Id: I768744b0361c9abd1bb226b36391829359f17724

Change-Id: Ib8b32313022c78b947db87d6c05e252df0c14a5d
parent 2d1cd0d5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -38,7 +38,9 @@ import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.layout.layout
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.semantics.LiveRegionMode
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.liveRegion
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@@ -110,6 +112,9 @@ fun OngoingActivityChip(
                    if (contentDescription != null) {
                        this.contentDescription = contentDescription
                    }
                    if (model.content is OngoingActivityChipModel.Content.Countdown) {
                        liveRegion = LiveRegionMode.Assertive
                    }
                }
                .widthIn(min = minWidth)
                // For non-privacy-related chips, only show the chip if there's enough space for at