Merge "AudioService: fix CTS verifier for stream mute" into tm-qpr-dev am: de0b2d6a63
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20926414 Change-Id: I7fe5e852357bb265b1257a63eaa12ff758697b44 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3606,9 +3606,11 @@ public class AudioService extends IAudioService.Stub
|
||||
setRingerMode(getNewRingerMode(stream, index, flags),
|
||||
TAG + ".onSetStreamVolume", false /*external*/);
|
||||
}
|
||||
// setting non-zero volume for a muted stream unmutes the stream and vice versa,
|
||||
// setting non-zero volume for a muted stream unmutes the stream and vice versa
|
||||
// (only when changing volume for the current device),
|
||||
// except for BT SCO stream where only explicit mute is allowed to comply to BT requirements
|
||||
if (streamType != AudioSystem.STREAM_BLUETOOTH_SCO) {
|
||||
if ((streamType != AudioSystem.STREAM_BLUETOOTH_SCO)
|
||||
&& (getDeviceForStream(stream) == device)) {
|
||||
mStreamStates[stream].mute(index == 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user