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

Commit 9058c7f4 authored by jiabin's avatar jiabin
Browse files

Add setMin for A11y stream slider bar.

Since the volume of accessiblity will not go to 0, add setMin for A11y
stream slider in case it goes to 0 in volume panel.

Bug: 72403580
Test: Add log in onProgressChanged and check A11y stream won't go to 0.
Change-Id: Ie8c88c8a40fad4d281997922df8acb8f446288c7
parent b914565f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -765,6 +765,11 @@ public class VolumeDialogImpl implements VolumeDialog {
        if (max != row.slider.getMax()) {
        if (max != row.slider.getMax()) {
            row.slider.setMax(max);
            row.slider.setMax(max);
        }
        }
        // update A11y slider min
        final int min = ss.levelMin * 100;
        if (isA11yStream && min != row.slider.getMin()) {
            row.slider.setMin(min);
        }


        // update header text
        // update header text
        Util.setText(row.header, getStreamLabelH(ss));
        Util.setText(row.header, getStreamLabelH(ss));