am 37185d90: Merge "DO NOT MERGE Hide the volume panel for watches for now" into klp-modular-dev

* commit '37185d90a2036ece55991f416fcf7948a2198d97':
  DO NOT MERGE Hide the volume panel for watches for now
This commit is contained in:
Justin Koh
2014-10-01 18:00:45 +00:00
committed by Android Git Automerger

View File

@@ -1165,6 +1165,12 @@ public class AudioService extends IAudioService.Stub {
streamType = AudioSystem.STREAM_NOTIFICATION;
}
// Don't show the volume panel for watches yet.
if ((mContext.getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_WATCH)
== Configuration.UI_MODE_TYPE_WATCH) {
flags &= ~AudioManager.FLAG_SHOW_UI;
}
mVolumePanel.postVolumeChanged(streamType, flags);
if ((flags & AudioManager.FLAG_FIXED_VOLUME) == 0) {