DO NOT MERGE Hide the volume panel for watches for now

Hide the volume panel: it's not usable. Need new design in a future release.

Bug: 17753651
Change-Id: I6f7b0683908407b2c1457379cc6641d25adc5c83
This commit is contained in:
Justin Koh
2014-10-01 10:42:33 -07:00
parent 781c988a76
commit 0beee08646

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