Merge "Volume dialog touch-tracking is disabled when in zenMute." into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0951dbd00d
@@ -713,6 +713,7 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
|
||||
final boolean visible = mState.zenMode != Global.ZEN_MODE_OFF
|
||||
&& (mAudioManager.isStreamAffectedByRingerMode(mActiveStream) || mExpanded)
|
||||
&& !mZenPanel.isEditing();
|
||||
|
||||
TransitionManager.beginDelayedTransition(mDialogView, getTransition());
|
||||
if (wasVisible != visible && !visible) {
|
||||
prepareForCollapse();
|
||||
@@ -840,6 +841,11 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
|
||||
row.icon.setContentDescription(getStreamLabelH(ss));
|
||||
}
|
||||
|
||||
// ensure tracking is disabled if zenMuted
|
||||
if (zenMuted) {
|
||||
row.tracking = false;
|
||||
}
|
||||
|
||||
// update slider
|
||||
final boolean enableSlider = !zenMuted;
|
||||
final int vlevel = row.ss.muted && (!isRingStream && !zenMuted) ? 0
|
||||
|
||||
Reference in New Issue
Block a user