OSDN Git Service

Message about audio stream deprecation as warning
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 2 May 2017 17:01:08 +0000 (10:01 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 2 May 2017 17:01:08 +0000 (10:01 -0700)
The message indicating the use of stream types for operations
  other than volume control is deprecated shouldn't be an
  error but a warning

Test: use apps that request audio focus with a stream type, check log
Bug: 37887058
Change-Id: Iaafae8aa599984688dae448e868de81317add4d3

media/java/android/media/PlayerBase.java

index e634dc2..dd66649 100644 (file)
@@ -536,9 +536,9 @@ public abstract class PlayerBase {
             throw new IllegalArgumentException("Use of STREAM_ACCESSIBILITY is reserved for "
                     + "volume control");
         }
-        Log.e(className, "Use of stream types is deprecated for operations other than " +
-                "volume control.");
-        Log.e(className, "See the documentation of " + opName + " for what to use instead with " +
+        Log.w(className, "Use of stream types is deprecated for operations other than " +
+                "volume control");
+        Log.w(className, "See the documentation of " + opName + " for what to use instead with " +
                 "android.media.AudioAttributes to qualify your playback use case");
     }
 }