Merge "[b/109850442]Fail to adjust volume when connect Ampplifier.]" am: 36ee8e0244
am: 1506f83f4f
Change-Id: I61ce181f8800331900926bcc29d5a066e183feef
This commit is contained in:
@@ -1574,7 +1574,9 @@ public class AudioService extends IAudioService.Stub
|
|||||||
|
|
||||||
// For notifications/ring, show the ui before making any adjustments
|
// For notifications/ring, show the ui before making any adjustments
|
||||||
// Don't suppress mute/unmute requests
|
// Don't suppress mute/unmute requests
|
||||||
if (mVolumeController.suppressAdjustment(resolvedStream, flags, isMute)) {
|
// Don't suppress adjustments for single volume device
|
||||||
|
if (mVolumeController.suppressAdjustment(resolvedStream, flags, isMute)
|
||||||
|
&& !mIsSingleVolume) {
|
||||||
direction = 0;
|
direction = 0;
|
||||||
flags &= ~AudioManager.FLAG_PLAY_SOUND;
|
flags &= ~AudioManager.FLAG_PLAY_SOUND;
|
||||||
flags &= ~AudioManager.FLAG_VIBRATE;
|
flags &= ~AudioManager.FLAG_VIBRATE;
|
||||||
|
|||||||
Reference in New Issue
Block a user