am 2bdf89b1: Merge "DO NOT MERGE Fix typo" into lmp-mr1-dev

* commit '2bdf89b167d709e170150e5ae5bf888e6535c1fd':
  DO NOT MERGE Fix typo
This commit is contained in:
Sungsoo Lim
2015-01-06 00:18:35 +00:00
committed by Android Git Automerger

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