Change-Id: I0c738602616fda510b765e03f8a25abfc8316b84
This commit is contained in:
Sungsoo Lim
2015-01-05 09:08:34 +09:00
parent 65e644b449
commit 9dcba434e2

View File

@@ -836,8 +836,8 @@ public class MediaSessionService extends SystemService implements Monitor {
mAudioService.setMasterMute(!isMasterMute, flags, packageName, mICallback);
} else {
mAudioService.adjustMasterVolume(direction, flags, packageName);
// Do not call setStreamMute when direction = 0 which is just to show
// UI.
// Do not call setMasterMute when direction = 0 which is used just to
// show the UI.
if (isMasterMute && direction != 0) {
mAudioService.setMasterMute(false, flags, packageName, mICallback);
}
@@ -849,8 +849,8 @@ public class MediaSessionService extends SystemService implements Monitor {
} else {
mAudioService.adjustSuggestedStreamVolume(direction, suggestedStream,
flags, packageName);
// Do not call setStreamMute when direction = 0 which is just to show
// UI.
// Do not call setStreamMute when direction = 0 which is used just to
// show the UI.
if (isStreamMute && direction != 0) {
mAudioService.setStreamMute(suggestedStream, false, mICallback);
}