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

This commit is contained in:
Justin Koh
2014-10-01 17:57:58 +00:00
committed by Android (Google) Code Review

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) {