From c4c13b44b816540af7fe99b40b276c1c6979a44c Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Tue, 2 May 2017 10:01:08 -0700 Subject: [PATCH] Message about audio stream deprecation as warning 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/media/java/android/media/PlayerBase.java b/media/java/android/media/PlayerBase.java index e634dc2f1d3c5..dd666493c346f 100644 --- a/media/java/android/media/PlayerBase.java +++ b/media/java/android/media/PlayerBase.java @@ -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"); } }