From 5eb21f3466ed3fc8c289b2c702269fb5485e8fde Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Wed, 19 Nov 2014 11:54:53 -0500 Subject: [PATCH] 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 --- .../SystemUI/src/com/android/systemui/volume/VolumePanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java index f12053cf5242c..351911cd99c1a 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java @@ -793,7 +793,7 @@ public class VolumePanel extends Handler implements DemoMode { sc.icon.setAlpha(mDisabledAlpha); sc.icon.setClickable(false); } else if (fixedVolume || - (sc.streamType != mAudioManager.getMasterStreamType() && muted) || + (sc.streamType != mAudioManager.getMasterStreamType() && !isRinger && muted) || (sSafetyWarning != null)) { sc.seekbarView.setEnabled(false); } else {