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

Commit 32cf7ea4 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Sound: VolumeSeekBarPreference must observe min vol index

The volume sliders must observe the minimum volume stream
  index, not just the maximum.

Bug: 74985293
Test: try to mute alarms through UI and fail
Change-Id: Icc5173898eb951239d02f5822239085f1ec3fc9a
parent 9dc3f74c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ public class VolumeSeekBarPreference extends SeekBarPreference {
    public void setStream(int stream) {
        mStream = stream;
        setMax(mAudioManager.getStreamMaxVolume(mStream));
        setMin(mAudioManager.getStreamMinVolume(mStream));
        setProgress(mAudioManager.getStreamVolume(mStream));
    }