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
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java
index 32631c9..422d566 100644
--- a/media/java/android/media/AudioService.java
+++ b/media/java/android/media/AudioService.java
@@ -1165,6 +1165,12 @@
             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) {