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

Commit 49705788 authored by Anton Potapov's avatar Anton Potapov
Browse files

Don't announce progress for a disabled slider

Flag: aconfig new_volume_panel NEXTFOOD
Test: manual on the device with voice over turned on. Focus the slider
Fixes: 338504713
Change-Id: Ie7bd1ee61f871de8e8c6333f4c14a9dd8f1a066d
parent 72c37464
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -66,7 +66,9 @@ fun VolumeSlider(


                // provide a not animated value to the a11y because it fails to announce the
                // provide a not animated value to the a11y because it fails to announce the
                // settled value when it changes rapidly.
                // settled value when it changes rapidly.
                if (state.isEnabled) {
                    progressBarRangeInfo = ProgressBarRangeInfo(state.value, state.valueRange)
                    progressBarRangeInfo = ProgressBarRangeInfo(state.value, state.valueRange)
                }
                setProgress { targetValue ->
                setProgress { targetValue ->
                    val targetDirection =
                    val targetDirection =
                        when {
                        when {