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

Commit 06f44a6d authored by Anton Potapov's avatar Anton Potapov
Browse files

Add disabledMessage to the VolumeSlider contentDescription

Flag: aconfig new_volume_panel TEAMFOOD
Test: manual on the phone with the voiceover turned on
Fixes: 331873535
Change-Id: I8d142904cb83103d0ad843d39c99be1ef64a1cba
parent b828afed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -58,7 +58,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.