Merge "DO NOT MERGE Fix typo" into lmp-mr1-dev

This commit is contained in:
Sungsoo Lim
2015-01-06 00:13:12 +00:00
committed by Android (Google) Code Review

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);
}