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

Commit 5eb21f34 authored by John Spurlock's avatar John Spurlock
Browse files

Volume: Ensure ring/notif slider is enabled when ringer=vibrate.

Although the audio policy makes a distinction between voice capable
and not when determining the default active stream, have the panel
recognize this condition and behave the same way (enable the slider)
on all devices.

Bug: 17405530
Change-Id: If3e1af3078f47bc1205545e919ccc6206020e7b2
parent 0925db87
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -793,7 +793,7 @@ public class VolumePanel extends Handler implements DemoMode {
            sc.icon.setAlpha(mDisabledAlpha);
            sc.icon.setAlpha(mDisabledAlpha);
            sc.icon.setClickable(false);
            sc.icon.setClickable(false);
        } else if (fixedVolume ||
        } else if (fixedVolume ||
                (sc.streamType != mAudioManager.getMasterStreamType() && muted) ||
                (sc.streamType != mAudioManager.getMasterStreamType() && !isRinger && muted) ||
                (sSafetyWarning != null)) {
                (sSafetyWarning != null)) {
            sc.seekbarView.setEnabled(false);
            sc.seekbarView.setEnabled(false);
        } else {
        } else {