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

Commit c96af15b authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Add disabledMessage to the VolumeSlider contentDescription" into main

parents 993720fe 06f44a6d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,7 +61,8 @@ fun VolumeSlider(
        modifier =
            modifier.clearAndSetSemantics {
                if (!state.isEnabled) disabled()
                contentDescription = state.label
                contentDescription =
                    state.disabledMessage?.let { "${state.label}, $it" } ?: state.label

                // provide a not animated value to the a11y because it fails to announce the
                // settled value when it changes rapidly.