OSDN Git Service

MediaRouter: Remove hidden annotation usages
authorJaewan Kim <jaewan@google.com>
Mon, 28 Jan 2019 01:20:06 +0000 (10:20 +0900)
committerJaewan Kim <jaewan@google.com>
Tue, 29 Jan 2019 06:31:13 +0000 (15:31 +0900)
This removes hidden annotation usages from the framework to the apex,
which would be prohibited.

Test: Build
Bug: 123485698
Change-Id: I9f6b17a61c5438e0d538a7a97587c375d8603613

media/java/android/media/MediaRouter.java

index ffeff4d..3444e92 100644 (file)
@@ -2357,8 +2357,7 @@ public class MediaRouter {
                 return;
             }
             if (mPlaybackType == RemoteControlClient.PLAYBACK_TYPE_REMOTE) {
-                @VolumeProvider.ControlType int volumeControl =
-                        VolumeProvider.VOLUME_CONTROL_FIXED;
+                int volumeControl = VolumeProvider.VOLUME_CONTROL_FIXED;
                 switch (mVolumeHandling) {
                     case RemoteControlClient.PLAYBACK_VOLUME_VARIABLE:
                         volumeControl = VolumeProvider.VOLUME_CONTROL_ABSOLUTE;
@@ -2384,8 +2383,7 @@ public class MediaRouter {
 
         class SessionVolumeProvider extends VolumeProvider {
 
-            public SessionVolumeProvider(@VolumeProvider.ControlType int volumeControl,
-                    int maxVolume, int currentVolume) {
+            SessionVolumeProvider(int volumeControl, int maxVolume, int currentVolume) {
                 super(volumeControl, maxVolume, currentVolume);
             }